Changeset 540e0c6 for dump-blfs-scripts.xsl
- Timestamp:
- 11/28/2005 08:17:49 PM (19 years ago)
- Branches:
- 1.0, 2.3, 2.3.x, 2.4, ablfs, ablfs-more, legacy, new_features, trunk
- Children:
- c506b99
- Parents:
- d419098
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
dump-blfs-scripts.xsl
rd419098 r540e0c6 30 30 <xsl:param name="package" select="sect1info/keywordset/keyword[@role='package']"/> 31 31 <xsl:param name="ftpdir" select="sect1info/keywordset/keyword[@role='ftpdir']"/> 32 <xsl:param name="unpackdir" select="sect1info/keywordset/keyword[@role='unpackdir']"/>33 32 <!-- Creating dirs and files --> 34 33 <exsl:document href="{$dirname}/{$filename}" method="text"> … … 37 36 <xsl:with-param name="package" select="$package"/> 38 37 <xsl:with-param name="ftpdir" select="$ftpdir"/> 39 <xsl:with-param name="unpackdir" select="$unpackdir"/>40 38 </xsl:apply-templates> 41 39 <xsl:if test="sect2[@role='package']"> 42 40 <xsl:text>cd ~/sources/</xsl:text> 43 41 <xsl:value-of select="$ftpdir"/> 44 <xsl:text>
rm -rf </xsl:text> 45 <xsl:value-of select="$unpackdir"/> 46 <xsl:text>

</xsl:text> 42 <xsl:text>
rm -rf $UNPACKDIR

</xsl:text> 47 43 </xsl:if> 48 44 <xsl:text>exit</xsl:text> … … 54 50 <xsl:param name="package" select="foo"/> 55 51 <xsl:param name="ftpdir" select="foo"/> 56 <xsl:param name="unpackdir" select="foo"/>57 52 <xsl:choose> 58 53 <xsl:when test="@role = 'package'"> … … 67 62 <xsl:with-param name="package" select="$package"/> 68 63 <xsl:with-param name="ftpdir" select="$ftpdir"/> 69 <xsl:with-param name="unpackdir" select="$unpackdir"/>70 64 </xsl:apply-templates> 71 65 <xsl:text>
</xsl:text> … … 74 68 <xsl:text>tar -xf </xsl:text> 75 69 <xsl:value-of select="$package"/> 76 <xsl:text>.* 
cd</xsl:text>77 <xsl: value-of select="$unpackdir"/>78 <xsl:text> 
</xsl:text>70 <xsl:text>.* > /tmp/unpacked
</xsl:text> 71 <xsl:text>UNPACKDIR=`head -n1 /tmp/unpacked | sed 's@^./@@;s@/.*@@'`
</xsl:text> 72 <xsl:text>cd $UNPACKDIR
</xsl:text> 79 73 <xsl:apply-templates select=".//screen | .//para/command"/> 80 74 <xsl:text>
</xsl:text> … … 117 111 <xsl:param name="package" select="foo"/> 118 112 <xsl:param name="ftpdir" select="foo"/> 119 <xsl:param name="unpackdir" select="foo"/>120 113 <xsl:choose> 121 114 <xsl:when test="contains(string(),'HTTP')">
Note:
See TracChangeset
for help on using the changeset viewer.