]> granicus.if.org Git - apache/commitdiff
Generate MD5 digest.
authorWilfredo Sanchez <wsanchez@apache.org>
Mon, 25 Nov 2002 04:36:16 +0000 (04:36 +0000)
committerWilfredo Sanchez <wsanchez@apache.org>
Mon, 25 Nov 2002 04:36:16 +0000 (04:36 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@97640 13f79535-47bb-0310-9956-ffa450edef68

build/binbuild.sh

index 191c28f89c011740c77329305f17ecf31da87a2e..1a6cf6059f42bf1c67f5b97aa060539fc64fd505 100755 (executable)
@@ -17,6 +17,13 @@ VER=`echo $APDIR | sed s/httpd-//`
 TAR="`srclib/apr/build/PrintPath tar`"
 GZIP="`srclib/apr/build/PrintPath gzip`"
 COMPRESS="`srclib/apr/build/PrintPath compress`"
+MD5="`srclib/apr/build/PrintPath md5`"
+if [ x$MD5 = x ]; then
+  OPENSSL="`srclib/apr/build/PrintPath openssl`"
+  if [ x$OPENSSL != x ]; then
+    MD5="$OPENSSL md5"
+  fi
+fi
 
 if [ x$1 != x ]; then
   USER=$1
@@ -168,6 +175,10 @@ else
     echo "         gzip -9 ../httpd-$VER-$OS.tar"
   fi
 
+  if [ "x$MD5" != "x" ]; then
+    $MD5 $ARCHIVE > $ARCHIVE.md5
+  fi
+
   if [ -f $ARCHIVE ] && [ -f ../httpd-$VER-$OS.README ]; then
     echo "Ready."
     echo "You can find the binary archive ($ARCHIVE)"
@@ -175,6 +186,7 @@ else
     echo "parent directory."
     exit 0;
   else
+    echo "ERROR: Archive or README is missing."
     exit 1;
   fi
 fi