Only mangle filenames in patch if patch release

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@7749 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2007-11-24 18:37:44 +00:00
parent f715a8b0e5
commit a97517c364
2 changed files with 4 additions and 1 deletions

View File

@ -108,6 +108,7 @@ BUILDCOMMON=
BUILDPERL=
BUILDSHELL=
BUILDLITE=
PATCHRELEASE=
################################################################################
# F U N C T I O N S
################################################################################
@ -335,6 +336,7 @@ case $VERSION in
#
# Patch Release
#
PATCHRELEASE=Yes
SHOREWALLDIR=shorewall-common-${VERSION%-*}
SHOREWALLLITEDIR=shorewall-lite-${VERSION%-*}
TARBALL=shorewall-common-${VERSION%-*}.tgz
@ -907,7 +909,7 @@ if [ -n "$OLDVERSION" ]; then
[ -n "$BUILDPERL" ] && diff -Naur -X $(dirname $0)/exclude.txt shorewall-perl-$OLDVERSION shorewall-perl-$VERSION >> patch-$VERSION || true
[ -n "$BUILDSHELL" ] && diff -Naur -X $(dirname $0)/exclude.txt shorewall-shell-$OLDVERSION shorewall-shell-$VERSION >> patch-$VERSION || true
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
[ -n "$PATCHRELEASE" ] && 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

View File

@ -2,4 +2,5 @@ releasenotes.txt
changelog.txt
*.5
*.8
*.spec
diff*