From 8bf6acdc68af2ed34d7b66d52101cdc1a6345248 Mon Sep 17 00:00:00 2001 From: teastep Date: Mon, 10 Dec 2007 20:35:05 +0000 Subject: [PATCH] Allow for patch generation only git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@7891 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb --- tools/build/buildshorewall | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/tools/build/buildshorewall b/tools/build/buildshorewall index 4952e2674..9697ebe94 100755 --- a/tools/build/buildshorewall +++ b/tools/build/buildshorewall @@ -215,7 +215,7 @@ while [ -z "$done" ]; do -*) option=${option#-} - [ -z "$option" ] && break + [ -z "$option" ] && shift && break 2 while [ -n "$option" ]; do case $option in @@ -946,16 +946,13 @@ if [ -n "$OLDVERSION" ]; then progress_message "Creating patch-$VERSION ..." - > patch-$VERSION + > patch-$VERSION - [ -d shorewall-common-$VERSION ] && diff -Naur -X $(dirname $0)/exclude.txt shorewall-common-$OLDVERSION shorewall-common-$VERSION >> patch-$VERSION || true - [ -d shorewall-lite-$VERSION ] && diff -Naur -X $(dirname $0)/exclude.txt shorewall-lite-$OLDVERSION shorewall-lite-$VERSION >> patch-$VERSION || true - [ -d shorewall-perl-$VERSION ] && diff -Naur -X $(dirname $0)/exclude.txt shorewall-perl-$OLDVERSION shorewall-perl-$VERSION >> patch-$VERSION || true - [ -d shorewall-shell-$VERSION ] && diff -Naur -X $(dirname $0)/exclude.txt shorewall-shell-$OLDVERSION shorewall-shell-$VERSION >> patch-$VERSION || true - - if [ -n "$PATCHRELEASE" ]; then - eval perl -i -p -e "'if ( /\+\+\+/ ) { s/shorewall-common-$VERSION/Shorewall-common/;s/shorewall-lite-$VERSION/Shorewall-lite/;s/shorewall-perl-$VERSION/Shorewall-perl/;s/shorewall-shell-$VERSION/Shorewall-shell/ }'" patch-$VERSION - fi + [ -d shorewall-common-$VERSION ] && diff -Naur -X $(dirname $0)/exclude.txt shorewall-common-$OLDVERSION shorewall-common-$VERSION >> patch-$VERSION || true + [ -d shorewall-lite-$VERSION ] && diff -Naur -X $(dirname $0)/exclude.txt shorewall-lite-$OLDVERSION shorewall-lite-$VERSION >> patch-$VERSION || true + [ -d shorewall-perl-$VERSION ] && diff -Naur -X $(dirname $0)/exclude.txt shorewall-perl-$OLDVERSION shorewall-perl-$VERSION >> patch-$VERSION || true + [ -d shorewall-shell-$VERSION ] && diff -Naur -X $(dirname $0)/exclude.txt shorewall-shell-$OLDVERSION shorewall-shell-$VERSION >> patch-$VERSION || true + fi progress_message "Shorewall $VERSION Build complete - $(date)"