]> granicus.if.org Git - apache/commitdiff
No gzip? Try compress.
authorWilfredo Sanchez <wsanchez@apache.org>
Mon, 25 Nov 2002 04:32:31 +0000 (04:32 +0000)
committerWilfredo Sanchez <wsanchez@apache.org>
Mon, 25 Nov 2002 04:32:31 +0000 (04:32 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@97639 13f79535-47bb-0310-9956-ffa450edef68

build/binbuild.sh

index d5f5f5e574addf36f8cc931d1751ba975e2cfecd..191c28f89c011740c77329305f17ecf31da87a2e 100755 (executable)
@@ -16,6 +16,7 @@ CONFIGPARAM="--enable-layout=Apache --prefix=$BUILD_DIR --enable-mods-shared=mos
 VER=`echo $APDIR | sed s/httpd-//`
 TAR="`srclib/apr/build/PrintPath tar`"
 GZIP="`srclib/apr/build/PrintPath gzip`"
+COMPRESS="`srclib/apr/build/PrintPath compress`"
 
 if [ x$1 != x ]; then
   USER=$1
@@ -152,10 +153,12 @@ else
     if [ "x$GZIP" != "x" ]; then
       $GZIP -9 ../httpd-$VER-$OS.tar
       ARCHIVE=../httpd-$VER-$OS.tar.gz
+    elif [ "x$COMPRESS" != "x" ]; then
+      $COMPRESS ../httpd-$VER-$OS.tar
+      ARCHIVE=../httpd-$VER-$OS.tar.Z
     else
       echo "WARNING: Could not find a 'gzip' program!"
-      echo "       Please execute the following command manually:"
-      echo "         gzip -9 ../httpd-$VER-$OS.tar"
+      echo "       tar archive is not compressed."
       ARCHIVE=../httpd-$VER-$OS.tar
     fi
   else