- Timestamp:
- 07/26/2007 07:07:03 PM (17 years ago)
- Branches:
- 2.3, 2.3.x, 2.4, ablfs, ablfs-more, legacy, new_features, trunk
- Children:
- 35d99d6
- Parents:
- d1ede32
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
BLFS/libs/scripts.xsl
rd1ede32 r0efb837 169 169 <xsl:template match="sect2" mode="xorg7"> 170 170 <xsl:choose> 171 <xsl:when test="@role = 'package'"/> 171 <xsl:when test="@role = 'package'"> 172 <xsl:apply-templates select="itemizedlist/listitem/para" mode="xorg7"/> 173 </xsl:when> 172 174 <xsl:when test="not(@role)"> 173 175 <xsl:apply-templates select=".//screen"/> 174 <xsl:apply-templates select="../sect2[@role='package']/itemizedlist/listitem/para" 175 mode="xorg7"/> 176 <xsl:text>WGET_LST=</xsl:text> 177 <xsl:apply-templates select=".//screen" mode="wget_lst"/> 178 <xsl:text>
</xsl:text> 176 <xsl:apply-templates select="../sect2[@role='package']/itemizedlist/listitem/para" mode="xorg7-patch"/> 177 <xsl:apply-templates select=".//screen" mode="sect-ver"/> 179 178 </xsl:when> 180 179 <xsl:when test="@role = 'installation'"> 181 <xsl:text>for package in $( cat $WGET_LST) ; do180 <xsl:text>for package in $(grep -v '^#' ../${sect-ver}.wget) ; do 182 181 packagedir=$(echo $package | sed 's/.tar.bz2//') 183 182 tar -xf $package … … 191 190 </xsl:if> 192 191 <xsl:text>ldconfig

</xsl:text> 192 </xsl:when> 193 <xsl:when test="@role = 'configuration'"> 194 <xsl:apply-templates select=".//screen"/> 195 <xsl:text>
</xsl:text> 193 196 </xsl:when> 194 197 </xsl:choose> … … 392 395 393 396 <xsl:template match="itemizedlist/listitem/para" mode="xorg7"> 397 <xsl:if test="contains(string(ulink/@url),'.md5') or 398 contains(string(ulink/@url),'.wget')"> 399 <xsl:text>wget </xsl:text> 400 <xsl:value-of select="ulink/@url"/> 401 <xsl:text>
</xsl:text> 402 </xsl:if> 403 </xsl:template> 404 405 <xsl:template match="itemizedlist/listitem/para" mode="xorg7-patch"> 394 406 <xsl:if test="contains(string(ulink/@url),'.patch')"> 395 407 <xsl:text>wget </xsl:text> … … 414 426 </xsl:template> 415 427 416 <xsl:template match="screen" mode="wget_lst"> 417 <xsl:value-of select="substring-after(string(),' -i ')"/> 428 <xsl:template match="screen" mode="sect-ver"> 429 <xsl:text>sect-ver=</xsl:text> 430 <xsl:value-of select="substring-before(substring-after(string(),'-c ../'),'.md5')"/> 431 <xsl:text>
</xsl:text> 418 432 </xsl:template> 419 433
Note:
See TracChangeset
for help on using the changeset viewer.