Changeset a4acb12


Ignore:
Timestamp:
06/29/2017 02:10:30 PM (7 years ago)
Author:
Pierre Labastie <pierre@…>
Branches:
ablfs-more, legacy, trunk
Children:
c57747d
Parents:
6990d80
Message:

Quote bash variables in arguments to --stringparam for xsltproc

Location:
common/libs
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • common/libs/func_book_parser

    r6990d80 ra4acb12  
    9696    clfs)
    9797        echo -n " ${L_arrow}${BOLD}$ARCH${R_arrow} target architecture... "
    98         xsltproc --nonet                                 \
    99                  --xinclude                              \
    100                  --stringparam method $METHOD            \
    101                  --stringparam testsuite $TEST           \
    102                  --stringparam bomb-testsuite $BOMB_TEST \
    103                  --stringparam vim-lang $VIMLANG         \
    104                  --stringparam timezone $TIMEZONE        \
    105                  --stringparam page $PAGE                \
    106                  --stringparam lang $LANG                \
    107                  --stringparam sparc $SPARC64_PROC       \
    108                  --stringparam x86 $TARGET               \
    109                  --stringparam mips $TARGET              \
    110                  -o ./${PROGNAME}-commands/              \
    111                  $XSL                                    \
     98        xsltproc --nonet                                   \
     99                 --xinclude                                \
     100                 --stringparam method "$METHOD"            \
     101                 --stringparam testsuite "$TEST"           \
     102                 --stringparam bomb-testsuite "$BOMB_TEST" \
     103                 --stringparam vim-lang "$VIMLANG"         \
     104                 --stringparam timezone "$TIMEZONE"        \
     105                 --stringparam page "$PAGE"                \
     106                 --stringparam lang "$LANG"                \
     107                 --stringparam sparc "$SPARC64_PROC"       \
     108                 --stringparam x86 "$TARGET"               \
     109                 --stringparam mips "$TARGET"              \
     110                 -o ./${PROGNAME}-commands/                \
     111                 $XSL                                      \
    112112                 $BOOK/BOOK/$ARCH-index.xml >>$LOGDIR/$LOG 2>&1
    113113      ;;
     
    115115    clfs2)
    116116        echo -n " ${L_arrow}${BOLD}$ARCH${R_arrow} target architecture... "
    117         xsltproc --nonet                          \
    118                  --xinclude                       \
    119                  --stringparam vim-lang $VIMLANG  \
    120                  --stringparam timezone $TIMEZONE \
    121                  --stringparam page $PAGE         \
    122                  --stringparam lang $LANG         \
    123                  --output ./${PROGNAME}-commands/ \
    124                  $XSL                             \
     117        xsltproc --nonet                            \
     118                 --xinclude                         \
     119                 --stringparam vim-lang "$VIMLANG"  \
     120                 --stringparam timezone "$TIMEZONE" \
     121                 --stringparam page "$PAGE"         \
     122                 --stringparam lang "$LANG"         \
     123                 --output ./${PROGNAME}-commands/   \
     124                 $XSL                               \
    125125                 $BOOK/BOOK/$ARCH-index.xml >>$LOGDIR/$LOG 2>&1
    126126      ;;
     
    128128    clfs3)
    129129        echo -n " ${L_arrow}${BOLD}$ARCH${R_arrow} target architecture... "
    130         xsltproc --nonet                          \
    131                  --xinclude                       \
    132                  --stringparam endian x$ENDIAN    \
    133                  --stringparam timezone $TIMEZONE \
    134                  --stringparam page $PAGE         \
    135                  --stringparam lang $LANG         \
    136                  --output ./${PROGNAME}-commands/ \
    137                  $XSL                             \
     130        xsltproc --nonet                            \
     131                 --xinclude                         \
     132                 --stringparam endian x$ENDIAN      \
     133                 --stringparam timezone "$TIMEZONE" \
     134                 --stringparam page "$PAGE"         \
     135                 --stringparam lang "$LANG"         \
     136                 --output ./${PROGNAME}-commands/   \
     137                 $XSL                               \
    138138                 $BOOK/BOOK/$ARCH-index.xml >>$LOGDIR/$LOG 2>&1
    139139      ;;
     
    165165        popd > /dev/null
    166166
    167         xsltproc --nonet                                    \
    168                  --xinclude                                 \
    169                  --stringparam revision       $INITSYS      \
    170                  --stringparam testsuite      $TEST         \
    171                  --stringparam bomb-testsuite $BOMB_TEST    \
    172                  --stringparam vim-lang       $VIMLANG      \
    173                  --stringparam full-locale    $FULL_LOCALE  \
    174                  --stringparam timezone       $TIMEZONE     \
    175                  --stringparam page           $PAGE         \
    176                  --stringparam lang           $LANG         \
    177                  --stringparam pkgmngt        $PKGMNGT      \
    178                  --stringparam wrap-install   $WRAP_INSTALL \
    179                  --stringparam hostname       $HOSTNAME     \
    180                  --stringparam interface      $INTERFACE    \
    181                  --stringparam ip             $IP_ADDR      \
    182                  --stringparam gateway        $GATEWAY      \
    183                  --stringparam prefix         $PREFIX       \
    184                  --stringparam broadcast      $BROADCAST    \
    185                  --stringparam domain         $DOMAIN       \
    186                  --stringparam nameserver1    $DNS1         \
    187                  --stringparam nameserver2    $DNS2         \
    188                  --output ./${PROGNAME}-commands/           \
    189                  $XSL                                       \
     167        xsltproc --nonet                                      \
     168                 --xinclude                                   \
     169                 --stringparam revision       "$INITSYS"      \
     170                 --stringparam testsuite      "$TEST"         \
     171                 --stringparam bomb-testsuite "$BOMB_TEST"    \
     172                 --stringparam vim-lang       "$VIMLANG"      \
     173                 --stringparam full-locale    "$FULL_LOCALE"  \
     174                 --stringparam timezone       "$TIMEZONE"     \
     175                 --stringparam page           "$PAGE"         \
     176                 --stringparam lang           "$LANG"         \
     177                 --stringparam pkgmngt        "$PKGMNGT"      \
     178                 --stringparam wrap-install   "$WRAP_INSTALL" \
     179                 --stringparam hostname       "$HOSTNAME"     \
     180                 --stringparam interface      "$INTERFACE"    \
     181                 --stringparam ip             "$IP_ADDR"      \
     182                 --stringparam gateway        "$GATEWAY"      \
     183                 --stringparam prefix         "$PREFIX"       \
     184                 --stringparam broadcast      "$BROADCAST"    \
     185                 --stringparam domain         "$DOMAIN"       \
     186                 --stringparam nameserver1    "$DNS1"         \
     187                 --stringparam nameserver2    "$DNS2"         \
     188                 --output ./${PROGNAME}-commands/             \
     189                 $XSL                                         \
    190190                 $BOOK/index.xml >> $LOGDIR/$LOG 2>&1
    191191      ;;
     
    225225      ;;
    226226    hlfs)
    227         xsltproc --nonet --xinclude           \
    228                  --stringparam model $MODEL   \
    229                  --stringparam kernel $KERNEL \
    230                  --output pkg_tarball_list    \
    231                  packages.xsl                 \
     227        xsltproc --nonet --xinclude             \
     228                 --stringparam model "$MODEL"   \
     229                 --stringparam kernel "$KERNEL" \
     230                 --output pkg_tarball_list      \
     231                 packages.xsl                   \
    232232                 $BOOK/chapter04/chapter04.xml >>$LOGDIR/$LOG 2>&1
    233233      ;;
    234234    lfs)
    235         xsltproc --nonet --xinclude              \
    236                  --stringparam pkgmngt $PKGMNGT  \
    237                  --stringparam revision $INITSYS \
    238                  --output pkg_tarball_list       \
    239                  packages.xsl                    \
     235        xsltproc --nonet --xinclude                \
     236                 --stringparam pkgmngt "$PKGMNGT"  \
     237                 --stringparam revision "$INITSYS" \
     238                 --output pkg_tarball_list         \
     239                 packages.xsl                      \
    240240                 $BOOK/chapter03/chapter03.xml >>$LOGDIR/$LOG 2>&1
    241241      ;;
  • common/libs/func_download_pkgs

    r6990d80 ra4acb12  
    151151    clfs*)
    152152        echo -n "Creating CLFS <${ARCH}> specific URLs file"
    153         xsltproc --nonet --xinclude            \
    154                  --stringparam server $SERVER \
    155                  --stringparam family clfs     \
    156                  -o $BUILDDIR/sources/urls.lst \
    157                  urls.xsl                      \
     153        xsltproc --nonet --xinclude             \
     154                 --stringparam server "$SERVER" \
     155                 --stringparam family clfs      \
     156                 -o $BUILDDIR/sources/urls.lst  \
     157                 urls.xsl                       \
    158158                 $BOOK/BOOK/materials/$ARCH-chapter.xml >>$LOGDIR/$LOG 2>&1
    159159        echo " ...OK"
     
    161161    hlfs)
    162162        echo -n "Creating HLFS <${MODEL}> + <${KERNEL}> specific URLs file"
    163         xsltproc --nonet --xinclude            \
    164                  --stringparam server $SERVER \
    165                  --stringparam family lfs      \
    166                  --stringparam model $MODEL    \
    167                  --stringparam kernel $KERNEL \
    168                  -o $BUILDDIR/sources/urls.lst \
    169                  urls.xsl                      \
     163        xsltproc --nonet --xinclude             \
     164                 --stringparam server "$SERVER" \
     165                 --stringparam family lfs       \
     166                 --stringparam model "$MODEL"   \
     167                 --stringparam kernel "$KERNEL" \
     168                 -o $BUILDDIR/sources/urls.lst  \
     169                 urls.xsl                       \
    170170                 $BOOK/chapter04/chapter04.xml >>$LOGDIR/$LOG 2>&1
    171171        echo " ...OK"
     
    173173    lfs)
    174174        echo -n "Creating LFS specific URLs file"
    175         xsltproc --nonet --xinclude              \
    176                  --stringparam server $SERVER    \
    177                  --stringparam family lfs        \
    178                  --stringparam pkgmngt $PKGMNGT  \
    179                  --stringparam revision $INITSYS \
    180                  --output ../sources/urls.lst    \
    181                  urls.xsl                        \
     175        xsltproc --nonet --xinclude                \
     176                 --stringparam server "$SERVER"    \
     177                 --stringparam family lfs          \
     178                 --stringparam pkgmngt "$PKGMNGT"  \
     179                 --stringparam revision "$INITSYS" \
     180                 --output ../sources/urls.lst      \
     181                 urls.xsl                          \
    182182                 $BOOK/chapter03/chapter03.xml >>$LOGDIR/$LOG 2>&1
    183183        echo " ...OK"
Note: See TracChangeset for help on using the changeset viewer.