From 0271f9bbbf501309392f30fd5c1070b39d4cf2f9 Mon Sep 17 00:00:00 2001 From: teastep Date: Sun, 6 Jan 2008 22:41:55 +0000 Subject: [PATCH] Catch full upload from patch directory git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@8028 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb --- tools/build/upload | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tools/build/upload b/tools/build/upload index a43014253..8fa7b9d79 100755 --- a/tools/build/upload +++ b/tools/build/upload @@ -204,6 +204,11 @@ esac [ $# -eq 1 ] || { echo "Usage: $(basename $0) "; exit 2; } +if [ -z "$PATCHNUM" -a -d shorewall-common ]; then + echo " ERROR: Paranoid to upload a base release when a patch release has been built in the current directory" >&2 + exit 1 +fi + [ -d errata ] || mkdir errata [ -f known_problems.txt ] || echo "There are no known problems in Shorewall version $1" > known_problems.txt