From 49b4b808ab6328cc58534a29d87172a083687749 Mon Sep 17 00:00:00 2001 From: teastep Date: Fri, 24 Feb 2006 19:52:07 +0000 Subject: [PATCH] Fix sha1/md5 sum creations on partial build git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@3579 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb --- tools/build/makeshorewall | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/tools/build/makeshorewall b/tools/build/makeshorewall index 4d6fd0a6e..2b8a9b8d3 100755 --- a/tools/build/makeshorewall +++ b/tools/build/makeshorewall @@ -436,15 +436,21 @@ fi rm -f ${betaball}.asc do_or_die "$GPG $betaball" done - -;; + ;; esac -progress_message "Creating md5sums" -do_or_die "md5sum *$VERSION[-.]*tgz *$VERSION[-.]*rpm *$VERSION[-.]*bz2 > $VERSION.md5sums" +progress_message "Creating md5sums and sha1sums" -progress_message "Creating sha1sums" -do_or_die "sha1sum *$VERSION[-.]*tgz *$VERSION[-.]*rpm *$VERSION[-.]*bz2 > $VERSION.sha1sums" +rm -f $VERSION.md5sums $VERSION.sha1sums + +for file in *; do + case $file in + *tgz|*rpm|*bz2) + do_or_die "md5sum $file >> $VERSION.md5sums" + do_or_die "sha1sum $file >> $VERSION.sha1sums" + ;; + esac +done if [ -n "$OLDVERSION" ]; then progress_message "Creating patch-$VERSION ..."