Skip to content

Commit

Permalink
Avoid relying on non-standard tar `z' option.
Browse files Browse the repository at this point in the history
Turn on best compression for creating the archive.
  • Loading branch information
Sascha Schumann committed May 7, 2000
1 parent 2df8e73 commit 679bcde
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions makedist
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ VER=$1 ; shift
MY_OLDPWD=`pwd`

# the destination .tar.gz file
ARCHIVE=$MY_OLDPWD/$PKG-$VER.tar.gz
ARCHIVE=$MY_OLDPWD/$PKG-$VER.tar

# temporary directory used to check out files from CVS
DIR=$PKG-$VER
Expand Down Expand Up @@ -127,11 +127,12 @@ done

cd $MY_OLDPWD
$ECHO_N "makedist: making gzipped tar archive...$ECHO_C"
tar czf $ARCHIVE $PKG-$VER || exit 8
tar cf $ARCHIVE $PKG-$VER || exit 8
gzip -9 $ARCHIVE || exit 9
echo ""

$ECHO_N "makedist: cleaning up...$ECHO_C"
rm -rf $DIRPATH || exit 9
rm -rf $DIRPATH || exit 10
echo ""

exit 0

0 comments on commit 679bcde

Please sign in to comment.