summaryrefslogtreecommitdiff
path: root/makedist
diff options
context:
space:
mode:
authorSascha Schumann <sas@php.net>2000-05-07 00:18:06 +0000
committerSascha Schumann <sas@php.net>2000-05-07 00:18:06 +0000
commit679bcde68b90546ca6dfca7d5b98925e1521530b (patch)
tree17bb7295290f3584a05b86391322119b2d94e081 /makedist
parent2df8e7341e570e7aec31495b24b4c9b8f9e2336e (diff)
downloadphp-git-679bcde68b90546ca6dfca7d5b98925e1521530b.tar.gz
Avoid relying on non-standard tar `z' option.
Turn on best compression for creating the archive.
Diffstat (limited to 'makedist')
-rwxr-xr-xmakedist7
1 files changed, 4 insertions, 3 deletions
diff --git a/makedist b/makedist
index c60c9cc80a..892fdea38a 100755
--- a/makedist
+++ b/makedist
@@ -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
@@ -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