diff options
author | Wilfredo Sanchez <wsanchez@apache.org> | 2002-11-25 04:36:16 +0000 |
---|---|---|
committer | Wilfredo Sanchez <wsanchez@apache.org> | 2002-11-25 04:36:16 +0000 |
commit | 7ec15897bf47ee52fb8736cb211e9ef98a7e6b83 (patch) | |
tree | c9320b1c2701292fa1a37b3605e4eed695b97beb /build/binbuild.sh | |
parent | 8511af4cbe815740d38010b776f15aa995259aff (diff) | |
download | httpd-7ec15897bf47ee52fb8736cb211e9ef98a7e6b83.tar.gz |
Generate MD5 digest.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@97640 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'build/binbuild.sh')
-rwxr-xr-x | build/binbuild.sh | 12 |
1 files changed, 12 insertions, 0 deletions
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 |