Ported r3446 from trunk.

This commit is contained in:
Manuel Canales Esparcia 2007-08-11 11:19:48 +00:00
parent fcfde5afc2
commit 6f8b2a1991

View file

@ -155,7 +155,7 @@ cd xc&#xA;</xsl:text>
<xsl:text> <xsl:text>
if [[ -e unpacked ]] ; then if [[ -e unpacked ]] ; then
UNPACKDIR=`head -n1 unpacked | sed 's@^./@@;s@/.*@@'` UNPACKDIR=`head -n1 unpacked | sed 's@^./@@;s@/.*@@'`
[[ -n $UNPACKDIR ]] && [[ -d $UNPACKDIR ]] && rm -rf $UNPACKDIR [[ -n $UNPACKDIR ]] &amp;&amp; [[ -d $UNPACKDIR ]] &amp;&amp; rm -rf $UNPACKDIR
fi fi
tar -xvf $PACKAGE > unpacked tar -xvf $PACKAGE > unpacked
UNPACKDIR=`head -n1 unpacked | sed 's@^./@@;s@/.*@@'` UNPACKDIR=`head -n1 unpacked | sed 's@^./@@;s@/.*@@'`