Adds DIRPATH variable using dirname to enable markdown build.
Replaces single quotes with backticks. Change-Id: Ie3e959ca40c555f59bfb435e6348eea6380c1348 Reviewed-on: https://review.openstack.org/13486 Reviewed-by: Clark Boylan <clark.boylan@gmail.com> Approved: Monty Taylor <mordred@inaugust.com> Reviewed-by: Monty Taylor <mordred@inaugust.com> Tested-by: Jenkins
This commit is contained in:
parent
87778caaee
commit
cc42cff706
@ -15,6 +15,7 @@ shopt -s extglob
|
||||
# for the ID and xml filename.
|
||||
FILENAME=$1
|
||||
FILEPATH=`find ./ -regextype posix-extended -regex ".*${FILENAME}\.(md|markdown)"`
|
||||
pandoc -f markdown -t docbook -s ${FILEPATH} | xsltproc -o - /usr/share/xml/docbook/stylesheet/docbook5/db4-upgrade.xsl - | xmllint --format - | sed -e 's,<article,<book xml:id="$FILENAME",' | sed -e 's,</article>,</book>,' > src/markdown/$FILENAME.xml
|
||||
DIRPATH=`dirname $FILEPATH`
|
||||
pandoc -f markdown -t docbook -s ${FILEPATH} | xsltproc -o - /usr/share/xml/docbook/stylesheet/docbook5/db4-upgrade.xsl - | xmllint --format - | sed -e 's,<article,<book xml:id="$FILENAME",' | sed -e 's,</article>,</book>,' > ${DIRPATH}/$FILENAME.xml
|
||||
|
||||
pwd
|
||||
|
Loading…
Reference in New Issue
Block a user