Remove existing sources dir due failed build.
This commit is contained in:
parent
dc67791964
commit
859d863f42
1 changed files with 10 additions and 4 deletions
|
@ -102,7 +102,7 @@
|
|||
</xsl:apply-templates>
|
||||
<!-- Clean-up -->
|
||||
<xsl:text>cd ~/sources/$PKG_DIR
</xsl:text>
|
||||
<xsl:text>rm -rf $UNPACKDIR

</xsl:text>
|
||||
<xsl:text>rm -rf $UNPACKDIR unpacked

</xsl:text>
|
||||
</xsl:when>
|
||||
<!-- Non-package page -->
|
||||
<xsl:otherwise>
|
||||
|
@ -131,9 +131,15 @@
|
|||
<xsl:text>
</xsl:text>
|
||||
</xsl:when>
|
||||
<xsl:when test="@role = 'installation'">
|
||||
<xsl:text>tar -xvf $PACKAGE > unpacked
</xsl:text>
|
||||
<xsl:text>UNPACKDIR=`head -n1 unpacked | sed 's@^./@@;s@/.*@@'`
</xsl:text>
|
||||
<xsl:text>cd $UNPACKDIR
</xsl:text>
|
||||
<xsl:text>
|
||||
if [[ -e unpacked ]] ; then
|
||||
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:text>
</xsl:text>
|
||||
</xsl:when>
|
||||
|
|
Reference in a new issue