Remove existing sources dir due failed build.

This commit is contained in:
Manuel Canales Esparcia 2006-08-12 14:27:36 +00:00
parent dc67791964
commit 859d863f42

View file

@ -102,7 +102,7 @@
</xsl:apply-templates> </xsl:apply-templates>
<!-- Clean-up --> <!-- Clean-up -->
<xsl:text>cd ~/sources/$PKG_DIR&#xA;</xsl:text> <xsl:text>cd ~/sources/$PKG_DIR&#xA;</xsl:text>
<xsl:text>rm -rf $UNPACKDIR&#xA;&#xA;</xsl:text> <xsl:text>rm -rf $UNPACKDIR unpacked&#xA;&#xA;</xsl:text>
</xsl:when> </xsl:when>
<!-- Non-package page --> <!-- Non-package page -->
<xsl:otherwise> <xsl:otherwise>
@ -131,9 +131,15 @@
<xsl:text>&#xA;</xsl:text> <xsl:text>&#xA;</xsl:text>
</xsl:when> </xsl:when>
<xsl:when test="@role = 'installation'"> <xsl:when test="@role = 'installation'">
<xsl:text>tar -xvf $PACKAGE > unpacked&#xA;</xsl:text> <xsl:text>
<xsl:text>UNPACKDIR=`head -n1 unpacked | sed 's@^./@@;s@/.*@@'`&#xA;</xsl:text> if [[ -e unpacked ]] ; then
<xsl:text>cd $UNPACKDIR&#xA;</xsl:text> UNPACKDIR=`head -n1 unpacked | sed 's@^./@@;s@/.*@@'`
rm -rf $UNPACKDIR
fi
tar -xvf $PACKAGE > unpacked
UNPACKDIR=`head -n1 unpacked | sed 's@^./@@;s@/.*@@'`
cd $UNPACKDIR
</xsl:text>
<xsl:apply-templates select=".//screen | .//para/command"/> <xsl:apply-templates select=".//screen | .//para/command"/>
<xsl:text>&#xA;</xsl:text> <xsl:text>&#xA;</xsl:text>
</xsl:when> </xsl:when>