Changeset 540e0c6


Ignore:
Timestamp:
11/28/2005 08:17:49 PM (19 years ago)
Author:
Manuel Canales Esparcia <manuel@…>
Branches:
1.0, 2.3, 2.3.x, 2.4, ablfs, ablfs-more, legacy, new_features, trunk
Children:
c506b99
Parents:
d419098
Message:

Replaced the xsl:param "unpackdir" by the shell envar "$UNPACKDIR"

File:
1 edited

Legend:

Unmodified
Added
Removed
  • dump-blfs-scripts.xsl

    rd419098 r540e0c6  
    3030      <xsl:param name="package" select="sect1info/keywordset/keyword[@role='package']"/>
    3131      <xsl:param name="ftpdir" select="sect1info/keywordset/keyword[@role='ftpdir']"/>
    32       <xsl:param name="unpackdir" select="sect1info/keywordset/keyword[@role='unpackdir']"/>
    3332        <!-- Creating dirs and files -->
    3433      <exsl:document href="{$dirname}/{$filename}" method="text">
     
    3736          <xsl:with-param name="package" select="$package"/>
    3837          <xsl:with-param name="ftpdir" select="$ftpdir"/>
    39           <xsl:with-param name="unpackdir" select="$unpackdir"/>
    4038        </xsl:apply-templates>
    4139        <xsl:if test="sect2[@role='package']">
    4240          <xsl:text>cd ~/sources/</xsl:text>
    4341          <xsl:value-of select="$ftpdir"/>
    44           <xsl:text>&#xA;rm -rf </xsl:text>
    45           <xsl:value-of select="$unpackdir"/>
    46           <xsl:text>&#xA;&#xA;</xsl:text>
     42          <xsl:text>&#xA;rm -rf $UNPACKDIR&#xA;&#xA;</xsl:text>
    4743        </xsl:if>
    4844        <xsl:text>exit</xsl:text>
     
    5450    <xsl:param name="package" select="foo"/>
    5551    <xsl:param name="ftpdir" select="foo"/>
    56     <xsl:param name="unpackdir" select="foo"/>
    5752    <xsl:choose>
    5853      <xsl:when test="@role = 'package'">
     
    6762          <xsl:with-param name="package" select="$package"/>
    6863          <xsl:with-param name="ftpdir" select="$ftpdir"/>
    69           <xsl:with-param name="unpackdir" select="$unpackdir"/>
    7064        </xsl:apply-templates>
    7165        <xsl:text>&#xA;</xsl:text>
     
    7468        <xsl:text>tar -xf </xsl:text>
    7569        <xsl:value-of select="$package"/>
    76         <xsl:text>.*&#xA;cd </xsl:text>
    77         <xsl:value-of select="$unpackdir"/>
    78         <xsl:text>&#xA;</xsl:text>
     70        <xsl:text>.* > /tmp/unpacked&#xA;</xsl:text>
     71        <xsl:text>UNPACKDIR=`head -n1 /tmp/unpacked | sed 's@^./@@;s@/.*@@'`&#xA;</xsl:text>
     72        <xsl:text>cd $UNPACKDIR&#xA;</xsl:text>
    7973        <xsl:apply-templates select=".//screen | .//para/command"/>
    8074        <xsl:text>&#xA;</xsl:text>
     
    117111    <xsl:param name="package" select="foo"/>
    118112    <xsl:param name="ftpdir" select="foo"/>
    119     <xsl:param name="unpackdir" select="foo"/>
    120113    <xsl:choose>
    121114      <xsl:when test="contains(string(),'HTTP')">
Note: See TracChangeset for help on using the changeset viewer.