From cc42cff7068ed8d303b8939b97303ae364b31499 Mon Sep 17 00:00:00 2001 From: annegentle Date: Fri, 21 Sep 2012 13:57:28 -0500 Subject: [PATCH] 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 Approved: Monty Taylor Reviewed-by: Monty Taylor Tested-by: Jenkins --- modules/jenkins/files/slave_scripts/markdown-docbook.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/jenkins/files/slave_scripts/markdown-docbook.sh b/modules/jenkins/files/slave_scripts/markdown-docbook.sh index 78e5f38b73..2dc6bde5b6 100755 --- a/modules/jenkins/files/slave_scripts/markdown-docbook.sh +++ b/modules/jenkins/files/slave_scripts/markdown-docbook.sh @@ -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,,,' > 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,,,' > ${DIRPATH}/$FILENAME.xml pwd