Fix md5/sha1 stuff so that it works with beta and RC releases

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@2840 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2005-10-09 20:21:11 +00:00
parent 301c608bf7
commit 1874592698

View File

@ -239,7 +239,7 @@ case $VERSION in
XMLPROJ=Shorewall-docs2
BUILDLRP=
;;
2.5.*)
2.5.*|3.0.0*)
CVSTAG=HEAD
DOCTAG=HEAD
XMLPROJ=Shorewall-docs2
@ -303,9 +303,9 @@ if [ -n "${BUILDTARBALL}${BUILDRPM}" ]; then
if [ -n "$BUILDTARBALL" ]; then
progress_message "Creating $DIR/$TARBALL..."
do_or_die "tar -zcvf $TARBALL $SHOREWALLDIR >> $LOGFILE 2>&1"
do_or_die "tar -jcvf shorewall-$VERSION.tar.bz2 $SHOREWALLDIR >> $LOGFILE 2>&1"
do_or_die "tar -jcvf shorewall-${VERSION%-*}.tar.bz2 $SHOREWALLDIR >> $LOGFILE 2>&1"
for shoresuffix in tgz tar.bz2; do
shoreball=shorewall-$VERSION.${shoresuffix}
shoreball=shorewall-${VERSION%-*}.${shoresuffix}
report "Creating $DIR/$shoreball tarball sha1sums.."
do_or_die "sha1sum $shoreball >> $VERSION.sha1sums"
report "Creating $DIR/$shoreball tarball md5sums.."
@ -322,9 +322,9 @@ if [ -n "${BUILDTARBALL}${BUILDRPM}" ]; then
do_or_die "rpmbuild -tb --sign $TARBALL >> $LOGFILE 2>&1"
do_or_die cp -a $RPMDIR/RPMS/noarch/$RPMNAME .
progress_message "Creating $RPMNAME sha1sums.."
do_or_die "sha1sum shorewall-${VERSION}-1.noarch.rpm >> $VERSION.sha1sums"
do_or_die "sha1sum $RPMNAME >> $VERSION.sha1sums"
progress_message "Creating $RPMNAME md5sums.."
do_or_die "md5sum shorewall-${VERSION}-1.noarch.rpm >> $VERSION.md5sums"
do_or_die "md5sum $RPMNAME >> $VERSION.md5sums"
fi
fi