extract_funs.sh: fix for multiple distfiles.

--HG--
extra : convert_revision : 25557c3b6fda8f26ec9ac152e07a60c3afe5a23e
This commit is contained in:
Juan RP 2008-12-16 02:17:32 +01:00
parent d005331ecc
commit 175eefe18d
1 changed files with 4 additions and 6 deletions

View File

@ -94,7 +94,7 @@ extract_distfiles()
if [ $count -gt 1 ]; then
lwrksrc="$wrksrc/${curfile%$cursufx}"
lwrksrc="$wrksrc"
else
lwrksrc="$XBPS_BUILDDIR"
fi
@ -113,13 +113,11 @@ extract_distfiles()
fi
;;
.gz|.bz2)
mkdir -p $lwrksrc/$pkgname
cp -f $XBPS_SRCDISTDIR/$curfile $lwrksrc/$pkgname
cd $lwrksrc/$pkgname
cp -f $XBPS_SRCDISTDIR/$curfile $lwrksrc
if [ "$cursufx" = ".gz" ]; then
gunzip $curfile
cd $lwrksrc && gunzip $curfile
else
bunzip2 $curfile
cd $lwrksrc && bunzip2 $curfile
fi
;;
.tar)