- Timestamp:
- 08/15/2006 05:29:21 PM (18 years ago)
- Branches:
- experimental
- Children:
- c5a6f21
- Parents:
- 8946876
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
BLFS/libs/scripts.xsl
r8946876 re5612bb 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:apply-templates select="../sect2[@role='package']/itemizedlist/listitem/para" 177 mode="xorg7"/> 178 <xsl:text>WGET_LST=</xsl:text> 179 <xsl:apply-templates select=".//screen" mode="wget_lst"/> 180 <xsl:text>
</xsl:text> 181 </xsl:when> 182 <xsl:when test="@role = 'installation'"> 183 <xsl:text>for package in $(cat $WGET_LST) ; do 184 packagedir=$(echo $package | sed 's/.tar.bz2//') 185 tar -xf $package 186 cd $packagedir
</xsl:text> 187 <xsl:apply-templates select=".//screen | .//para/command"/> 188 <xsl:text> cd .. 189 rm -rf $packagedir 190 done
</xsl:text> 191 <xsl:if test="$sudo = 'y'"> 192 <xsl:text>sudo </xsl:text> 193 </xsl:if> 194 <xsl:text>ldconfig

</xsl:text> 154 195 </xsl:when> 155 196 </xsl:choose> … … 346 387 </xsl:template> 347 388 389 <xsl:template match="itemizedlist/listitem/para" mode="xorg7"> 390 <xsl:if test="contains(string(ulink/@url),'.patch')"> 391 <xsl:text>wget </xsl:text> 392 <xsl:value-of select="ulink/@url"/> 393 <xsl:text>
</xsl:text> 394 </xsl:if> 395 </xsl:template> 396 348 397 <!--======================== Commands code ==========================--> 349 398 … … 361 410 </xsl:template> 362 411 412 <xsl:template match="screen" mode="wget_lst"> 413 <xsl:value-of select="substring-after(string(),' -i ')"/> 414 </xsl:template> 415 363 416 <xsl:template match="para/command"> 364 417 <xsl:if test="(contains(string(),'test') or
Note:
See TracChangeset
for help on using the changeset viewer.