Changeset b45f723
- Timestamp:
- 08/15/2006 05:00:43 PM (18 years ago)
- Branches:
- 2.3, 2.3.x, 2.4, ablfs, ablfs-more, legacy, new_features, trunk
- Children:
- 5be3651
- Parents:
- a1f1969
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
BLFS/libs/scripts.xsl
ra1f1969 rb45f723 20 20 21 21 <xsl:template match="sect1"> 22 <xsl:if test="@id != 'locale-issues' and 23 (count(descendant::screen/userinput) > 0 and 22 <xsl:if test="(count(descendant::screen/userinput) > 0 and 24 23 count(descendant::screen/userinput) > 25 count(descendant::screen[@role='nodump']))"> 24 count(descendant::screen[@role='nodump'])) and 25 @id != 'locale-issues' and @id != 'xorg7' and 26 @id != 'x-setup'"> 26 27 27 28 <!-- The file names --> … … 91 92 <xsl:choose> 92 93 <!-- Package page --> 93 <xsl:when test="sect2[@role='package']"> 94 <xsl:when test="sect2[@role='package'] and not(@id = 'xorg7-app' or 95 @id = 'xorg7-data' or @id = 'xorg7-driver' or 96 @id = 'xorg7-font' or @id = 'xorg7-lib' or 97 @id = 'xorg7-proto' or @id = 'xorg7-util')"> 94 98 <!-- Variables --> 95 99 <xsl:text>SRC_ARCHIVE=$SRC_ARCHIVE
</xsl:text> … … 108 112 <xsl:text>rm -rf $UNPACKDIR unpacked

</xsl:text> 109 113 </xsl:when> 114 <!-- Xorg7 pseudo-packages --> 115 <xsl:when test="contains(@id,'xorg7') and not(@id = 'xorg7-server')"> 116 <xsl:text>SRC_DIR=$SRC_DIR 117 118 cd $SRC_DIR 119 mkdir -p xc 120 cd xc
</xsl:text> 121 <xsl:apply-templates select="sect2" mode="xorg7"/> 122 </xsl:when> 110 123 <!-- Non-package page --> 111 124 <xsl:otherwise> … … 152 165 <xsl:apply-templates select=".//screen"/> 153 166 <xsl:text>
</xsl:text> 167 </xsl:when> 168 </xsl:choose> 169 </xsl:template> 170 171 <xsl:template match="sect2" mode="xorg7"> 172 <xsl:choose> 173 <xsl:when test="@role = 'package'"/> 174 <xsl:when test="not(@role)"> 175 <xsl:apply-templates select=".//screen"/> 176 <xsl:text>WGET_LST=</xsl:text> 177 <xsl:apply-templates select=".//screen" mode="wget_lst"/> 178 <xsl:text>
</xsl:text> 179 </xsl:when> 180 <xsl:when test="@role = 'installation'"> 181 <xsl:text>for package in $(cat $WGET_LST) ; do 182 packagedir=$(echo $package | sed 's/.tar.bz2//') 183 tar -xf $package 184 cd $packagedir
</xsl:text> 185 <xsl:apply-templates select=".//screen | .//para/command"/> 186 <xsl:text>cd .. 187 rm -rf $packagedir 188 done
</xsl:text> 189 <xsl:if test="$sudo = 'y'"> 190 <xsl:text>sudo </xsl:text> 191 </xsl:if> 192 <xsl:text>ldconfig

</xsl:text> 154 193 </xsl:when> 155 194 </xsl:choose> … … 361 400 </xsl:template> 362 401 402 <xsl:template match="screen" mode="wget_lst"> 403 <xsl:value-of select="substring-after(string(),' -i ')"/> 404 </xsl:template> 405 363 406 <xsl:template match="para/command"> 364 407 <xsl:if test="(contains(string(),'test') or
Note:
See TracChangeset
for help on using the changeset viewer.