Changeset 619b313


Ignore:
Timestamp:
06/15/2019 03:26:23 PM (5 years ago)
Author:
Pierre Labastie <pierre@…>
Branches:
ablfs-more, legacy, trunk
Children:
cf2f109
Parents:
77a8042
Message:

Various fixes and improvements coming from github:

  • the case for "pax" in packInstall.sh.prog
  • an error in packageManager.xml.porg (comment before <?xml?> tag)
  • a non-working $Id in Makefile
  • some fixes for using the sect1info in lfs (in BLFS tools)
  • a big rewrite for generating scripts with more consistent line spacing, opening the way to manage remap="test" and remap="doc" attributes
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • BLFS/xsl/gen-install.xsl

    r77a8042 r619b313  
    77
    88  <xsl:template match="screen" mode="installation">
     9    <xsl:param name="want-stats" select="false"/>
    910<!-- "nature" variables:
    1011      - 'non-root': executable as user
     
    3637
    3738    <xsl:variable
     39         name="prec-screen"
     40         select="preceding::screen[not(@role='nodump') and ./userinput][1]
     41                        [ancestor::sect2 = current()/ancestor::sect2]"/>
     42
     43    <xsl:variable
    3844         name="prec-string"
    39          select="string(preceding-sibling::screen[not(@role='nodump') and
    40                                                       ./userinput][1])"/>
     45         select="string($prec-screen)"/>
     46
    4147<!--
    4248    <xsl:message>
     
    6167        <xsl:when
    6268             test="$prec-string='' or
    63                    (preceding-sibling::screen[not(@role='nodump') and
    64                                                       ./userinput] |
    65                     preceding-sibling::para/command[contains(text(),'check') or
    66                                                     contains(text(),'test')]
     69                   (preceding::screen[not(@role='nodump') and
     70                                                 ./userinput] |
     71                    preceding::command[contains(text(),'check') or
     72                                       contains(text(),'test')]
    6773                   )[last()][self::command]">
    6874          <xsl:text>none</xsl:text>
    6975        </xsl:when>
    70         <xsl:when
    71            test="preceding-sibling::screen
    72                     [not(@role='nodump') and ./userinput][1][not(@role)]">
     76        <xsl:when test="$prec-screen[not(@role)]">
    7377          <xsl:text>non-root</xsl:text>
    7478        </xsl:when>
     
    9195
    9296    <xsl:variable
     97         name="follow-screen"
     98         select="following::screen[not(@role='nodump') and ./userinput][1]
     99                        [ancestor::sect2 = current()/ancestor::sect2]"/>
     100
     101    <xsl:variable
    93102         name="follow-string"
    94          select="string(following-sibling::screen[not(@role='nodump') and
    95                                                       ./userinput][1])"/>
     103         select="string($follow-screen)"/>
    96104
    97105    <xsl:variable name="follow-nature">
     
    99107        <xsl:when
    100108             test="$follow-string='' or
    101                    (following-sibling::screen[not(@role='nodump') and
    102                                                       ./userinput] |
    103                     following-sibling::para/command[contains(text(),'check') or
    104                                                     contains(text(),'test')]
     109                   (following::screen[not(@role='nodump') and
     110                                                 ./userinput] |
     111                    following::command[contains(text(),'check') or
     112                                       contains(text(),'test')]
    105113                   )[1][self::command]">
    106114          <xsl:text>none</xsl:text>
    107115        </xsl:when>
    108         <xsl:when
    109            test="following-sibling::screen
    110                     [not(@role='nodump') and ./userinput][1][not(@role)]">
     116        <xsl:when test="$follow-screen[not(@role)]">
    111117          <xsl:text>non-root</xsl:text>
    112118        </xsl:when>
     
    138144        </xsl:if>
    139145        <xsl:apply-templates/>
    140         <xsl:text>
    141 </xsl:text>
    142146      </xsl:when>
    143147
     
    150154        </xsl:if>
    151155        <xsl:apply-templates mode="root"/>
    152         <xsl:text>
    153 </xsl:text>
    154156        <xsl:if test="$follow-nature='none'">
    155157          <xsl:call-template name="end-root"/>
     
    159161      <xsl:when test="$my-nature='install'">
    160162        <xsl:if test="$prec-nature='none' or $prec-nature='non-root'">
    161           <xsl:if test="contains($list-stat-norm,
    162                                  concat(' ',ancestor::sect1/@id,' '))">
     163          <xsl:if test="$want-stats">
    163164            <xsl:call-template name="output-destdir"/>
    164165          </xsl:if>
     
    167168        </xsl:if>
    168169        <xsl:if test="$prec-nature='config'">
    169           <xsl:if test="contains($list-stat-norm,
    170                                  concat(' ',ancestor::sect1/@id,' '))">
     170          <xsl:if test="$want-stats">
    171171            <xsl:call-template name="end-root"/>
    172172            <xsl:call-template name="output-destdir"/>
     
    176176        </xsl:if>
    177177        <xsl:apply-templates mode="install"/>
    178         <xsl:text>
    179 </xsl:text>
    180178        <xsl:if test="$follow-nature='none'">
    181179          <xsl:call-template name="end-install"/>
     
    189187  <xsl:template name="begin-root">
    190188    <xsl:if test="$sudo='y'">
    191       <xsl:text>sudo -E sh &lt;&lt; ROOT_EOF
    192 </xsl:text>
     189      <xsl:text>
     190sudo -E sh &lt;&lt; ROOT_EOF</xsl:text>
    193191    </xsl:if>
    194192  </xsl:template>
     
    196194  <xsl:template name="begin-install">
    197195    <xsl:if test="$wrap-install = 'y'">
    198       <xsl:text>if [ -r "$JH_PACK_INSTALL" ]; then
     196      <xsl:text>
     197if [ -r "$JH_PACK_INSTALL" ]; then
    199198  source $JH_PACK_INSTALL
    200199  export -f wrapInstall
    201200  export -f packInstall
    202201fi
    203 wrapInstall '
    204 </xsl:text>
     202wrapInstall '</xsl:text>
    205203    </xsl:if>
    206204  </xsl:template>
     
    208206  <xsl:template name="end-root">
    209207    <xsl:if test="$sudo='y'">
    210       <xsl:text>ROOT_EOF
    211 </xsl:text>
     208      <xsl:text>
     209ROOT_EOF</xsl:text>
    212210    </xsl:if>
    213211  </xsl:template>
     
    220218    </xsl:if>
    221219    <xsl:if test="$wrap-install = 'y'">
    222       <xsl:text>'&#xA;packInstall&#xA;</xsl:text>
    223     </xsl:if>
    224   </xsl:template>
    225 
    226   <xsl:template match="text()" mode="install">
     220      <xsl:text>'&#xA;packInstall</xsl:text>
     221    </xsl:if>
     222  </xsl:template>
     223
     224  <xsl:template match="userinput" mode="install">
     225    <xsl:text>
     226</xsl:text>
    227227    <xsl:call-template name="output-install">
    228       <xsl:with-param name="out-string" select="."/>
     228      <xsl:with-param name="out-string" select="string()"/>
    229229    </xsl:call-template>
    230230  </xsl:template>
     
    233233    <xsl:param name="out-string" select="''"/>
    234234    <xsl:choose>
     235      <xsl:when test="starts-with($out-string, 'make ') or
     236                      contains($out-string,' make ') or
     237                      contains($out-string,'&#xA;make')">
     238        <xsl:call-template name="output-install">
     239          <xsl:with-param
     240               name="out-string"
     241               select="substring-before($out-string,'make ')"/>
     242        </xsl:call-template>
     243        <xsl:text>make -j1 </xsl:text>
     244        <xsl:call-template name="output-install">
     245          <xsl:with-param
     246               name="out-string"
     247               select="substring-after($out-string,'make ')"/>
     248        </xsl:call-template>
     249      </xsl:when>
    235250      <xsl:when test="contains($out-string,string($APOS))
    236251                      and $wrap-install = 'y'">
  • BLFS/xsl/gen_pkg_list.xsl

    r77a8042 r619b313  
    4545          <xsl:text>&#xA;      </xsl:text>
    4646          <name>LFS Chapter 8</name>
    47           <xsl:apply-templates select='document($lfs-full)//chapter[@id="chapter-bootable"]/sect1/sect1info[./productname="linux"]'/>
     47          <xsl:apply-templates select='document($lfs-full)//chapter[@id="chapter-bootable"]/sect1/sect1info[./productname="kernel"]'/>
    4848          <xsl:text>&#xA;    </xsl:text>
    4949        </sublist>
     
    8787    <xsl:choose>
    8888<!-- Never update linux headers -->
    89       <xsl:when test="./productname='linux'
    90                       and ancestor::chapter[@id='chapter-building-system']"/>
     89      <xsl:when test="./productname='linux-headers'"/>
    9190<!-- Gcc version is taken from BLFS -->
    9291      <xsl:when test="./productname='gcc'"/>
     
    9998<!-- Systemd version is taken from BLFS -->
    10099      <xsl:when test="./productname='systemd'"/>
    101 <!-- Same for python and ninja -->
    102       <xsl:when test="./productname='ninja'"/>
     100<!-- Same for python3 -->
    103101      <xsl:when test="./productname='Python'"/>
    104102      <xsl:otherwise>
  • BLFS/xsl/lfs_make_book.xsl

    r77a8042 r619b313  
    1616                      $package='vim' or
    1717                      $package='systemd' or
    18                       $package='ninja' or
    1918                      $package='Python' or
    2019                      $package='shadow'"/>
     20      <xsl:when test="$package='kernel'">true</xsl:when>
    2121      <xsl:when test="$package='LFS-Release'">true</xsl:when>
    2222      <xsl:otherwise>
     
    3636                      $package='vim' or
    3737                      $package='systemd' or
    38                       $package='ninja' or
    3938                      $package='Python' or
    4039                      $package='shadow'"/>
    41       <xsl:when test="$package='linux'">
     40      <xsl:when test="$package='kernel'">
    4241        <xsl:for-each select="document($lfsbook)">
    4342          <xsl:apply-templates select="key('idlfs',$package)[ancestor::chapter/@id='chapter-bootable']" mode="lfs"/>
  • BLFS/xsl/scripts.xsl

    r77a8042 r619b313  
    7272
    7373<!-- simple instructions for removing .la files. -->
     74<!-- We'll use the rule that any text output begins with a linefeed if needed
     75     so that we do not need to output one at the end-->
    7476  <xsl:variable name="la-files-instr">
    7577
     
    7880             ! -path \*ImageMagick\* \
    7981               -delete
    80 done
    81 
    82 </xsl:variable>
     82done</xsl:variable>
    8383
    8484  <xsl:variable name="list-stat-norm"
     
    103103
    104104  <xsl:template match="sect1">
     105
     106    <!-- Are stat requested for this page? -->
     107    <xsl:variable name="want-stats"
     108                  select="contains($list-stat-norm,
     109                                   concat(' ',@id,' '))"/>
    105110
    106111      <!-- The file names -->
     
    139144set -e
    140145unset MAKELEVEL
     146</xsl:text>
    141147<!-- the above is needed for some packages -->
    142 </xsl:text>
    143148      <xsl:choose>
    144149        <!-- Package page -->
     
    147152               if using package management (see envars.conf), so
    148153               "export" it -->
    149           <xsl:text>export JH_PKG_DIR=</xsl:text>
     154          <xsl:text>
     155export JH_PKG_DIR=</xsl:text>
    150156          <xsl:value-of select="$filename"/>
    151157          <xsl:text>
     
    154160mkdir -p $SRC_DIR
    155161mkdir -p $BUILD_DIR
    156 
    157162</xsl:text>
    158163
    159164<!-- If stats are requested, include some definitions and intitializations -->
    160           <xsl:if test="contains($list-stat-norm,concat(' ',@id,' '))">
    161             <xsl:text>INFOLOG=$(pwd)/info-${JH_PKG_DIR}
     165          <xsl:if test="$want-stats">
     166            <xsl:text>
     167INFOLOG=$(pwd)/info-${JH_PKG_DIR}
    162168TESTLOG=$(pwd)/test-${JH_PKG_DIR}
    163169unset MAKEFLAGS
     
    167173PKG_DEST=${BUILD_DIR}/dest
    168174rm -rf $PKG_DEST
    169 
    170175</xsl:text>
    171176          </xsl:if>
    172177        <!-- Download code and build commands -->
    173           <xsl:apply-templates select="sect2"/>
     178          <xsl:apply-templates select="sect2">
     179            <xsl:with-param name="want-stats" select="$want-stats"/>
     180          </xsl:apply-templates>
    174181        <!-- Clean-up -->
    175           <xsl:text>cd $BUILD_DIR
     182          <xsl:text>
     183
     184cd $BUILD_DIR
    176185[[ -n "$JH_KEEP_FILES" ]] || </xsl:text>
    177186        <!-- In some case, some files in the build tree are owned
     
    180189            <xsl:text>sudo </xsl:text>
    181190          </xsl:if>
    182           <xsl:text>rm -rf $JH_UNPACKDIR unpacked&#xA;&#xA;</xsl:text>
     191          <xsl:text>rm -rf $JH_UNPACKDIR unpacked
     192</xsl:text>
    183193        </xsl:when>
    184194      <!-- Non-package page -->
     
    187197        </xsl:otherwise>
    188198      </xsl:choose>
    189       <xsl:text>exit</xsl:text>
     199      <xsl:text>
     200exit
     201</xsl:text><!-- include a \n at the end of document-->
    190202    </exsl:document>
    191203  </xsl:template>
     
    194206
    195207  <xsl:template match="sect2">
     208    <xsl:param name="want-stats" select="false"/>
    196209    <xsl:choose>
    197210
    198211      <xsl:when test="@role = 'package'">
    199         <xsl:text>cd $SRC_DIR
    200 </xsl:text>
     212        <xsl:text>
     213cd $SRC_DIR</xsl:text>
    201214        <!-- Download information is in bridgehead tags -->
    202215        <xsl:apply-templates select="bridgehead[@renderas='sect3']"/>
    203         <xsl:text>&#xA;</xsl:text>
    204216      </xsl:when><!-- @role="package" -->
    205217
     
    216228        </xsl:if>
    217229        <xsl:text>rm -rf
    218 
    219 </xsl:text>
    220 <!-- If stats are requested, insert the start size -->
    221         <xsl:if test="contains($list-stat-norm,concat(' ',../@id,' '))">
    222           <xsl:text>echo Start Size: $(sudo du -skx --exclude home /) >> $INFOLOG
    223 
     230</xsl:text>
     231        <!-- If stats are requested, insert the start size -->
     232        <xsl:if test="$want-stats">
     233          <xsl:text>
     234echo Start Size: $(sudo du -skx --exclude home /) >> $INFOLOG
    224235</xsl:text>
    225236        </xsl:if>
    226237
    227         <xsl:text>case $PACKAGE in
     238        <xsl:text>
     239case $PACKAGE in
    228240  *.tar.gz|*.tar.bz2|*.tar.xz|*.tgz|*.tar.lzma)
    229241     tar -xvf $SRC_DIR/$PACKAGE &gt; unpacked
     
    248260     mkdir $JH_UNPACKDIR
    249261     cp $SRC_DIR/$PACKAGE $JH_UNPACKDIR
    250      cp $(find . -mindepth 1 -maxdepth 1 -type l) $JH_UNPACKDIR
     262     ADDITIONAL="$(find . -mindepth 1 -maxdepth 1 -type l)"
     263     if [ -n "$ADDITIONAL" ]; then
     264         cp $ADDITIONAL $JH_UNPACKDIR
     265     fi
    251266     ;;
    252267esac
    253268export JH_UNPACKDIR
    254 cd $JH_UNPACKDIR&#xA;
    255 </xsl:text>
    256 <!-- If stats are requested, insert the start time -->
    257         <xsl:if test="contains($list-stat-norm,concat(' ',../@id,' '))">
    258           <xsl:text>echo Start Time: ${SECONDS} >> $INFOLOG
    259 
     269cd $JH_UNPACKDIR
     270</xsl:text>
     271        <!-- If stats are requested, insert the start time -->
     272        <xsl:if test="$want-stats">
     273          <xsl:text>
     274echo Start Time: ${SECONDS} >> $INFOLOG
    260275</xsl:text>
    261276        </xsl:if>
     
    265280             select=".//screen[not(@role = 'nodump') and ./userinput] |
    266281                     .//para/command[contains(text(),'check') or
    267                                      contains(text(),'test')]"/>
     282                                     contains(text(),'test')]">
     283          <xsl:with-param name="want-stats" select="$want-stats"/>
     284        </xsl:apply-templates>
     285        <xsl:text>
     286</xsl:text>
    268287        <xsl:if test="$sudo = 'y'">
    269288          <xsl:text>sudo /sbin/</xsl:text>
    270289        </xsl:if>
    271         <xsl:text>ldconfig&#xA;&#xA;</xsl:text>
     290        <xsl:text>ldconfig</xsl:text>
    272291      </xsl:when><!-- @role="installation" -->
    273292
    274293      <xsl:when test="@role = 'configuration'">
     294        <xsl:text>&#xA;</xsl:text>
    275295        <xsl:apply-templates mode="config"
    276296             select=".//screen[not(@role = 'nodump') and ./userinput]"/>
     
    368388    <xsl:text>
    369389  fi
    370 fi
    371 </xsl:text>
     390fi</xsl:text>
    372391    <xsl:if test="string-length($md5) &gt; 10">
    373       <xsl:text>echo "</xsl:text>
     392      <xsl:text>
     393echo "</xsl:text>
    374394      <xsl:value-of select="$md5"/>
    375395      <xsl:text>&#x20;&#x20;$</xsl:text>
    376396      <xsl:value-of select="$varname"/>
    377       <xsl:text>" | md5sum -c -
    378 </xsl:text>
     397      <xsl:text>" | md5sum -c -</xsl:text>
    379398    </xsl:if>
    380399<!-- link additional packages into $BUILD_DIR, because they are supposed to
    381400     be there-->
    382401    <xsl:if test="string($varname) != 'PACKAGE'">
    383       <xsl:text>[[ "$SRC_DIR" != "$BUILD_DIR" ]] &amp;&amp; ln -sf $SRC_DIR/$</xsl:text>
     402      <xsl:text>
     403[[ "$SRC_DIR" != "$BUILD_DIR" ]] &amp;&amp; ln -sf $SRC_DIR/$</xsl:text>
    384404      <xsl:value-of select="$varname"/>
    385       <xsl:text> $BUILD_DIR
    386 </xsl:text>
     405      <xsl:text> $BUILD_DIR</xsl:text>
    387406    </xsl:if>
     407    <xsl:text>&#xA;</xsl:text>
    388408  </xsl:template>
    389409
     
    546566        </xsl:if>
    547567        <xsl:apply-templates mode="root"/>
    548         <xsl:text>&#xA;</xsl:text>
    549568        <xsl:if test="not(following-sibling::screen[1][@role='root'])">
    550569          <xsl:call-template name="end-root"/>
     
    554573      <xsl:otherwise>
    555574        <xsl:apply-templates select="userinput"/>
    556         <xsl:text>&#xA;</xsl:text>
    557575      </xsl:otherwise>
    558576    </xsl:choose>
     
    562580    <xsl:param name="bootpkg" select="'bootscripts'"/>
    563581    <xsl:param name="url" select="''"/>
    564     <xsl:text>BOOTPKG_DIR=blfs-</xsl:text>
     582    <xsl:text>
     583BOOTPKG_DIR=blfs-</xsl:text>
    565584    <xsl:copy-of select="$bootpkg"/>
    566585    <xsl:text>
     586
    567587BOOTSRC_DIR=${JH_SRC_ARCHIVE}${JH_SRC_SUBDIRS:+/${BOOTPKG_DIR}}
    568588BOOTBUILD_DIR=${JH_BUILD_ROOT}${JH_BUILD_SUBDIRS:+/${BOOTPKG_DIR}}
     
    595615  BOOTUNPACKDIR=`head -n1 unpacked | sed 's@^./@@;s@/.*@@'`
    596616fi
    597 cd $BOOTUNPACKDIR
    598 </xsl:text>
     617cd $BOOTUNPACKDIR</xsl:text>
    599618  </xsl:template>
    600619
     
    603622<!-- if the preceding "screen" tag is role="root", and we are role="root"
    604623     the end-root has not been called. So do it -->
    605       <xsl:if test="preceding-sibling::screen[1][@role='root'] and
    606                    @role='root'">
     624      <xsl:if
     625           test="preceding-sibling::screen[1][@role='root'] and @role='root'">
    607626        <xsl:call-template name="end-root"/>
    608627      </xsl:if>
     
    614633<!-- if the preceding "screen" tag is role="root", and we are role="root"
    615634     the begin-root will not be called. So do it -->
    616       <xsl:if test="preceding-sibling::screen[1][@role='root'] and
    617                    @role='root'">
     635      <xsl:if
     636           test="preceding-sibling::screen[1][@role='root'] and @role='root'">
    618637        <xsl:call-template name="begin-root"/>
    619638      </xsl:if>
     
    622641<!-- if the preceding "screen" tag is role="root", and we are role="root"
    623642     the end-root has not been called. So do it -->
    624       <xsl:if test="preceding-sibling::screen[1][@role='root'] and
    625                    @role='root'">
     643      <xsl:if
     644           test="preceding-sibling::screen[1][@role='root'] and @role='root'">
    626645        <xsl:call-template name="end-root"/>
    627646      </xsl:if>
     
    633652<!-- if the preceding "screen" tag is role="root", and we are role="root"
    634653     the begin-root will not be called. So do it -->
    635       <xsl:if test="preceding-sibling::screen[1][@role='root'] and
    636                    @role='root'">
     654      <xsl:if
     655           test="preceding-sibling::screen[1][@role='root'] and @role='root'">
    637656        <xsl:call-template name="begin-root"/>
    638657      </xsl:if>
     
    643662<!-- if the next "screen" tag is role="root", and we are role="root"
    644663     the end-root has not been called. So do it -->
    645       <xsl:if test="following-sibling::screen[1][@role='root'] and
    646                    @role='root'">
     664      <xsl:if
     665           test="following-sibling::screen[1][@role='root'] and @role='root'">
    647666        <xsl:call-template name="end-root"/>
    648667      </xsl:if>
    649       <xsl:text>popd
    650 </xsl:text>
     668      <xsl:text>
     669popd</xsl:text>
    651670<!-- if the next "screen" tag is role="root", and we are role="root"
    652671     the begin-root will not be called. So do it -->
    653       <xsl:if test="following-sibling::screen[1][@role='root'] and
    654                    @role='root'">
     672      <xsl:if
     673           test="following-sibling::screen[1][@role='root'] and @role='root'">
    655674        <xsl:call-template name="begin-root"/>
    656675      </xsl:if>
     
    659678
    660679  <xsl:template match="command" mode="installation">
     680    <xsl:param name="want-stats" select="false"/>
    661681    <xsl:variable name="ns" select="normalize-space(string())"/>
    662682    <xsl:variable name="first"
     
    671691                                                contains(text(),'test')]))"/>
    672692    <xsl:choose>
    673       <xsl:when test="contains($list-stat-norm,
    674                                concat(' ',ancestor::sect1/@id,' '))">
     693      <xsl:when test="$want-stats">
    675694        <xsl:if test="$first">
    676695          <xsl:text>
     696
    677697echo Time after make: ${SECONDS} >> $INFOLOG
    678698echo Size after make: $(sudo du -skx --exclude home /) >> $INFOLOG
     
    683703      </xsl:when>
    684704      <xsl:otherwise>
    685         <xsl:text>#</xsl:text>
     705        <xsl:text>
     706#</xsl:text>
    686707      </xsl:otherwise>
    687708    </xsl:choose>
     
    699720      </xsl:otherwise>
    700721    </xsl:choose>
    701     <xsl:if test="contains($list-stat-norm,
    702                            concat(' ',ancestor::sect1/@id,' '))">
     722    <xsl:if test="$want-stats">
    703723      <xsl:text> &gt;&gt; $TESTLOG 2&gt;&amp;1</xsl:text>
    704724    </xsl:if>
    705     <xsl:text> || true&#xA;</xsl:text>
    706       <xsl:if test="contains($list-stat-norm,
    707                              concat(' ',ancestor::sect1/@id,' ')) and $last">
     725    <xsl:text> || true</xsl:text>
     726    <xsl:if test="$want-stats">
    708727        <xsl:text>
     728
    709729echo Time after test: ${SECONDS} >> $INFOLOG
    710730echo Size after test: $(sudo du -skx --exclude home /) >> $INFOLOG
    711731echo Time before install: ${SECONDS} >> $INFOLOG
    712 
    713732</xsl:text>
    714733        </xsl:if>
     
    716735
    717736  <xsl:template match="userinput">
     737    <xsl:text>
     738</xsl:text>
    718739    <xsl:apply-templates/>
     740  </xsl:template>
     741
     742  <xsl:template match="userinput" mode="root">
     743    <xsl:text>
     744</xsl:text>
     745    <xsl:apply-templates mode="root"/>
    719746  </xsl:template>
    720747
     
    734761    <xsl:param name="out-string" select="''"/>
    735762    <xsl:choose>
    736       <xsl:when test="contains($out-string,'make ')">
    737         <xsl:call-template name="output-root">
    738           <xsl:with-param name="out-string"
    739                           select="substring-before($out-string,'make ')"/>
    740         </xsl:call-template>
    741         <xsl:text>make -j1 </xsl:text>
    742         <xsl:call-template name="output-root">
    743           <xsl:with-param name="out-string"
    744                           select="substring-after($out-string,'make ')"/>
    745         </xsl:call-template>
    746       </xsl:when>
    747763      <xsl:when test="contains($out-string,'$') and $sudo = 'y'">
    748764        <xsl:call-template name="output-root">
     
    852868       mode="destdir"/>
    853869    <xsl:text>
     870
    854871echo Time after install: ${SECONDS} >> $INFOLOG
    855872echo Size after install: $(sudo du -skx --exclude home /) >> $INFOLOG
     
    874891      </xsl:otherwise>
    875892    </xsl:choose>
    876     <xsl:text>&#xA;</xsl:text>
    877893  </xsl:template>
    878894
     
    895911          </xsl:when>
    896912          <xsl:otherwise>
    897             <xsl:text>make DESTDIR=$PKG_DEST</xsl:text>
     913            <xsl:text>
     914make DESTDIR=$PKG_DEST</xsl:text>
    898915              <xsl:call-template name="outputpkgdest">
    899916                <xsl:with-param
     
    919936          </xsl:when>
    920937          <xsl:otherwise>
    921             <xsl:text>DESTDIR=$PKG_DEST ninja</xsl:text>
     938            <xsl:text>
     939DESTDIR=$PKG_DEST ninja</xsl:text>
    922940              <xsl:call-template name="outputpkgdest">
    923941                <xsl:with-param
     
    9851003          <xsl:text> &amp;&amp;</xsl:text>
    9861004        </xsl:if>
    987         <xsl:text>&#xA;</xsl:text>
     1005        <xsl:text>
     1006</xsl:text>
    9881007        <xsl:call-template name="remove-ampersand">
    9891008          <xsl:with-param name="out-string"
     
    10171036    <xsl:param name="instructions" select="''"/>
    10181037    <xsl:choose>
    1019       <xsl:when test="contains($instructions,'&#xA;')">
    1020         <xsl:copy-of select="substring-before($instructions,'&#xA;')"/>
    1021         <xsl:text>&#xA;</xsl:text>
     1038      <xsl:when
     1039           test="substring($instructions,string-length($instructions))=' '">
    10221040        <xsl:call-template name="remove-end-space">
    10231041          <xsl:with-param
    10241042               name="instructions"
    1025                select="substring-after($instructions,'&#xA;')"/>
    1026         </xsl:call-template>
    1027       </xsl:when>
    1028       <xsl:otherwise>
    1029         <xsl:copy-of select="normalize-space($instructions)"/>
     1043               select="substring($instructions,
     1044                                 1,
     1045                                 string-length($instructions)-1)"/>
     1046        </xsl:call-template>
     1047      </xsl:when>
     1048      <xsl:otherwise>
     1049        <xsl:copy-of select="$instructions"/>
    10301050      </xsl:otherwise>
    10311051    </xsl:choose>
  • Makefile

    r77a8042 r619b313  
    1 # $Id:
     1# $Id$
    22# From the Build Scripts Written By: Jim Gifford <lfs@jg555.com>
    33# Modified By: Joe Ciccone <jciccone@linuxfromscratch.org
  • pkgmngt/packInstall.sh.porg

    r77a8042 r619b313  
    3737    local PACKENT=$(dirname $JH_PACK_INSTALL)/blfs-xml/packages.ent
    3838    VERSION=$(sed -n 's/.*flashplayer[^0-9]*\([^"]*\).*/\1/p' $PACKENT)
     39    ;;
     40  pax*)
     41    local PACKENT=$(dirname $JH_PACK_INSTALL)/blfs-xml/packages.ent
     42    VERSION=$(sed -n 's/.*pax[^0-9]*\([^"]*\).*/\1/p' $PACKENT)
    3943    ;;
    4044  psutils*)
  • pkgmngt/packageManager.xml.porg

    r77a8042 r619b313  
     1<?xml version="1.0" encoding="UTF-8"?>
    12<!-- $Id$ -->
    2 <?xml version="1.0" encoding="UTF-8"?>
    33<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
    44  "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
Note: See TracChangeset for help on using the changeset viewer.