From: Wilfredo Sanchez Date: Mon, 25 Nov 2002 04:36:16 +0000 (+0000) Subject: Generate MD5 digest. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5af0f49140cec85bbe579fbc44763b464cb1e500;p=apache Generate MD5 digest. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@97640 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/build/binbuild.sh b/build/binbuild.sh index 191c28f89c..1a6cf6059f 100755 --- a/build/binbuild.sh +++ b/build/binbuild.sh @@ -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