Quote bash variables in arguments to --stringparam for xsltproc

This commit is contained in:
Pierre Labastie 2017-06-29 14:15:36 +00:00
parent 4954fdff01
commit e2182051f6
2 changed files with 72 additions and 72 deletions

View file

@ -97,16 +97,16 @@ extract_commands() { #
echo -n " ${L_arrow}${BOLD}$ARCH${R_arrow} target architecture... " echo -n " ${L_arrow}${BOLD}$ARCH${R_arrow} target architecture... "
xsltproc --nonet \ xsltproc --nonet \
--xinclude \ --xinclude \
--stringparam method $METHOD \ --stringparam method "$METHOD" \
--stringparam testsuite $TEST \ --stringparam testsuite "$TEST" \
--stringparam bomb-testsuite $BOMB_TEST \ --stringparam bomb-testsuite "$BOMB_TEST" \
--stringparam vim-lang $VIMLANG \ --stringparam vim-lang "$VIMLANG" \
--stringparam timezone $TIMEZONE \ --stringparam timezone "$TIMEZONE" \
--stringparam page $PAGE \ --stringparam page "$PAGE" \
--stringparam lang $LANG \ --stringparam lang "$LANG" \
--stringparam sparc $SPARC64_PROC \ --stringparam sparc "$SPARC64_PROC" \
--stringparam x86 $TARGET \ --stringparam x86 "$TARGET" \
--stringparam mips $TARGET \ --stringparam mips "$TARGET" \
-o ./${PROGNAME}-commands/ \ -o ./${PROGNAME}-commands/ \
$XSL \ $XSL \
$BOOK/BOOK/$ARCH-index.xml >>$LOGDIR/$LOG 2>&1 $BOOK/BOOK/$ARCH-index.xml >>$LOGDIR/$LOG 2>&1
@ -116,10 +116,10 @@ extract_commands() { #
echo -n " ${L_arrow}${BOLD}$ARCH${R_arrow} target architecture... " echo -n " ${L_arrow}${BOLD}$ARCH${R_arrow} target architecture... "
xsltproc --nonet \ xsltproc --nonet \
--xinclude \ --xinclude \
--stringparam vim-lang $VIMLANG \ --stringparam vim-lang "$VIMLANG" \
--stringparam timezone $TIMEZONE \ --stringparam timezone "$TIMEZONE" \
--stringparam page $PAGE \ --stringparam page "$PAGE" \
--stringparam lang $LANG \ --stringparam lang "$LANG" \
--output ./${PROGNAME}-commands/ \ --output ./${PROGNAME}-commands/ \
$XSL \ $XSL \
$BOOK/BOOK/$ARCH-index.xml >>$LOGDIR/$LOG 2>&1 $BOOK/BOOK/$ARCH-index.xml >>$LOGDIR/$LOG 2>&1
@ -130,9 +130,9 @@ extract_commands() { #
xsltproc --nonet \ xsltproc --nonet \
--xinclude \ --xinclude \
--stringparam endian x$ENDIAN \ --stringparam endian x$ENDIAN \
--stringparam timezone $TIMEZONE \ --stringparam timezone "$TIMEZONE" \
--stringparam page $PAGE \ --stringparam page "$PAGE" \
--stringparam lang $LANG \ --stringparam lang "$LANG" \
--output ./${PROGNAME}-commands/ \ --output ./${PROGNAME}-commands/ \
$XSL \ $XSL \
$BOOK/BOOK/$ARCH-index.xml >>$LOGDIR/$LOG 2>&1 $BOOK/BOOK/$ARCH-index.xml >>$LOGDIR/$LOG 2>&1
@ -166,15 +166,15 @@ extract_commands() { #
xsltproc --nonet \ xsltproc --nonet \
--xinclude \ --xinclude \
--stringparam revision $INITSYS \ --stringparam revision "$INITSYS" \
--stringparam testsuite $TEST \ --stringparam testsuite "$TEST" \
--stringparam bomb-testsuite $BOMB_TEST \ --stringparam bomb-testsuite "$BOMB_TEST" \
--stringparam vim-lang $VIMLANG \ --stringparam vim-lang "$VIMLANG" \
--stringparam full-locale $FULL_LOCALE \ --stringparam full-locale "$FULL_LOCALE" \
--stringparam timezone $TIMEZONE \ --stringparam timezone "$TIMEZONE" \
--stringparam page $PAGE \ --stringparam page "$PAGE" \
--stringparam lang $LANG \ --stringparam lang "$LANG" \
--stringparam pkgmngt $PKGMNGT \ --stringparam pkgmngt "$PKGMNGT" \
--output ./${PROGNAME}-commands/ \ --output ./${PROGNAME}-commands/ \
$XSL \ $XSL \
$BOOK/index.xml >> $LOGDIR/$LOG 2>&1 $BOOK/index.xml >> $LOGDIR/$LOG 2>&1
@ -215,16 +215,16 @@ create_package_list() { #
;; ;;
hlfs) hlfs)
xsltproc --nonet --xinclude \ xsltproc --nonet --xinclude \
--stringparam model $MODEL \ --stringparam model "$MODEL" \
--stringparam kernel $KERNEL \ --stringparam kernel "$KERNEL" \
--output pkg_tarball_list \ --output pkg_tarball_list \
packages.xsl \ packages.xsl \
$BOOK/chapter04/chapter04.xml >>$LOGDIR/$LOG 2>&1 $BOOK/chapter04/chapter04.xml >>$LOGDIR/$LOG 2>&1
;; ;;
lfs) lfs)
xsltproc --nonet --xinclude \ xsltproc --nonet --xinclude \
--stringparam pkgmngt $PKGMNGT \ --stringparam pkgmngt "$PKGMNGT" \
--stringparam revision $INITSYS \ --stringparam revision "$INITSYS" \
--output pkg_tarball_list \ --output pkg_tarball_list \
packages.xsl \ packages.xsl \
$BOOK/chapter03/chapter03.xml >>$LOGDIR/$LOG 2>&1 $BOOK/chapter03/chapter03.xml >>$LOGDIR/$LOG 2>&1

View file

@ -151,7 +151,7 @@ create_urls() { #
clfs*) clfs*)
echo -n "Creating CLFS <${ARCH}> specific URLs file" echo -n "Creating CLFS <${ARCH}> specific URLs file"
xsltproc --nonet --xinclude \ xsltproc --nonet --xinclude \
--stringparam server $SERVER \ --stringparam server "$SERVER" \
--stringparam family clfs \ --stringparam family clfs \
-o $BUILDDIR/sources/urls.lst \ -o $BUILDDIR/sources/urls.lst \
urls.xsl \ urls.xsl \
@ -161,10 +161,10 @@ create_urls() { #
hlfs) hlfs)
echo -n "Creating HLFS <${MODEL}> + <${KERNEL}> specific URLs file" echo -n "Creating HLFS <${MODEL}> + <${KERNEL}> specific URLs file"
xsltproc --nonet --xinclude \ xsltproc --nonet --xinclude \
--stringparam server $SERVER \ --stringparam server "$SERVER" \
--stringparam family lfs \ --stringparam family lfs \
--stringparam model $MODEL \ --stringparam model "$MODEL" \
--stringparam kernel $KERNEL \ --stringparam kernel "$KERNEL" \
-o $BUILDDIR/sources/urls.lst \ -o $BUILDDIR/sources/urls.lst \
urls.xsl \ urls.xsl \
$BOOK/chapter04/chapter04.xml >>$LOGDIR/$LOG 2>&1 $BOOK/chapter04/chapter04.xml >>$LOGDIR/$LOG 2>&1
@ -173,10 +173,10 @@ create_urls() { #
lfs) lfs)
echo -n "Creating LFS specific URLs file" echo -n "Creating LFS specific URLs file"
xsltproc --nonet --xinclude \ xsltproc --nonet --xinclude \
--stringparam server $SERVER \ --stringparam server "$SERVER" \
--stringparam family lfs \ --stringparam family lfs \
--stringparam pkgmngt $PKGMNGT \ --stringparam pkgmngt "$PKGMNGT" \
--stringparam revision $INITSYS \ --stringparam revision "$INITSYS" \
--output ../sources/urls.lst \ --output ../sources/urls.lst \
urls.xsl \ urls.xsl \
$BOOK/chapter03/chapter03.xml >>$LOGDIR/$LOG 2>&1 $BOOK/chapter03/chapter03.xml >>$LOGDIR/$LOG 2>&1