- actually remove the right subdirectory

- compress with -9
This commit is contained in:
Nalin Dahyabhai 2006-09-12 18:36:26 +00:00
parent c9bb094f94
commit b9f2e8ffcd
1 changed files with 4 additions and 4 deletions

View File

@ -24,14 +24,14 @@ for tarball in ${initialdir}/cyrus-sasl-*.tar.{gz,bz2} ; do
;;
*.gz)
gzip -dc "$tarball" | tar xf -
rm -fr cyrus-sasl-*/dlcompat
tar cf - * | gzip -c > \
rm -fr cyrus-sasl-*/dlcompat*
tar cf - * | gzip -9c > \
$initialdir/`basename $tarball .tar.gz`-nodlcompat.tar.gz
;;
*.bz2)
bzip2 -dc "$tarball" | tar xf -
rm -fr cyrus-sasl-*/dlcompat
tar cf - * | bzip2 -c > \
rm -fr cyrus-sasl-*/dlcompat*
tar cf - * | bzip2 -9c > \
$initialdir/`basename $tarball .tar.bz2`-nodlcompat.tar.bz2
;;
esac