From f7d2a505d6df48461ee9cc4fec1d7fdce49d90a3 Mon Sep 17 00:00:00 2001 From: annegentle Date: Thu, 8 Nov 2012 16:30:33 -0600 Subject: [PATCH] Escapes double quotes for xml:id and double quotes sed input param. Change-Id: Idbac2520e69838811b11fbfa0910cead74a93d77 Reviewed-on: https://review.openstack.org/15682 Reviewed-by: Jeremy Stanley Approved: Clark Boylan Reviewed-by: Clark Boylan Tested-by: Jenkins --- modules/jenkins/files/slave_scripts/markdown-docbook.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/jenkins/files/slave_scripts/markdown-docbook.sh b/modules/jenkins/files/slave_scripts/markdown-docbook.sh index 2dc6bde5b6..4c20bd83e5 100755 --- a/modules/jenkins/files/slave_scripts/markdown-docbook.sh +++ b/modules/jenkins/files/slave_scripts/markdown-docbook.sh @@ -14,8 +14,8 @@ 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 -FILEPATH=`find ./ -regextype posix-extended -regex ".*${FILENAME}\.(md|markdown)"` +FILEPATH=`find ./ -regextype posix-extended -regex ".*${FILENAME}\.(md|markdown|mdown)"` 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 +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