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