X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=build%2Fmkrelease;h=daf4883cee5a5e9bb7bcc6c9f64bc73e6ee5af8c;hb=de790f94fc30c837bd0c52de44303fe1f4216151;hp=177be7a39840cc29bbcd5bbca17fa13fffe8fb1d;hpb=35e549b49b1f58ec494bc05cc2718f82d20c30c6;p=openldap diff --git a/build/mkrelease b/build/mkrelease index 177be7a398..daf4883cee 100755 --- a/build/mkrelease +++ b/build/mkrelease @@ -2,7 +2,7 @@ # $OpenLDAP$ ## This work is part of OpenLDAP Software . ## -## Copyright 1998-2014 The OpenLDAP Foundation. +## Copyright 1998-2017 The OpenLDAP Foundation. ## All rights reserved. ## ## Redistribution and use in source and binary forms, with or without @@ -36,6 +36,16 @@ shift TAG=$1 shift +#Linux +#SHA="sha1sum" +#MD="md5sum" +#BSD +#SHA="sha1" +#MD="md5" +#OpenSSL +SHA="openssl sha1" +MD="openssl md5" + if test -e $RELNAME ; then echo "error: $RELNAME exists" exit 1 @@ -75,8 +85,8 @@ echo "Rolling up $OL_STRING ..." tar cf $RELNAME.tar $RELNAME gzip -9 -c $RELNAME.tar > $RELNAME.tgz -md5 $RELNAME.tgz > $RELNAME.md5 -sha1 $RELNAME.tgz > $RELNAME.sha1 +${MD} $RELNAME.tgz > $RELNAME.md5 +${SHA} $RELNAME.tgz > $RELNAME.sha1 rm -f $RELNAME.tar ls -l $RELNAME.*