Adds a FILEPATH variable input so that the location where
the markdown to docbook script runs is accessible to the slave. Patchset 2 puts output xml into src/markdown folder. Patchset 3 fixes extra space between xml and :id. Change-Id: I619cfe7ddf4d4a34ddf4537cb31132eacaddb462 Reviewed-on: https://review.openstack.org/13413 Reviewed-by: Clark Boylan <clark.boylan@gmail.com> Approved: Clark Boylan <clark.boylan@gmail.com> Tested-by: Jenkins
This commit is contained in:
parent
7d018cc4b4
commit
060a582f6a
@ -14,6 +14,7 @@ shopt -s extglob
|
||||
# and images-api-v2.0.md and openstackapi-programming and images-api-v2.0 are the names
|
||||
# for the ID and xml filename.
|
||||
FILENAME=$1
|
||||
pandoc -f markdown -t docbook -s ${FILENAME}.@(md|mdown) | 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> > $FILENAME.xml'
|
||||
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
|
||||
|
||||
pwd
|
||||
|
Loading…
x
Reference in New Issue
Block a user