From 76bbd985cdc179ba6c442f2ddae1cd850ca4bc3f Mon Sep 17 00:00:00 2001 From: teastep Date: Wed, 12 Dec 2007 16:04:52 +0000 Subject: [PATCH] Add copyrights to scripts; fix silly setversion bug git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@7905 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb --- tools/build/setversion | 28 ++++++++++++++++++++++++++-- tools/build/stage | 27 ++++++++++++++++++++++++++- tools/build/upload | 27 ++++++++++++++++++++++++++- 3 files changed, 78 insertions(+), 4 deletions(-) diff --git a/tools/build/setversion b/tools/build/setversion index 4bfb1824c..f4903b66e 100755 --- a/tools/build/setversion +++ b/tools/build/setversion @@ -1,5 +1,29 @@ #!/bin/sh - +# +# Update the version in a set of Shorewall product directories +# +# (C) 2007 -- Tom Eastep (teastep@shorewall.net) +# +# +# This program is under GPL [http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt] +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of Version 2 of the GNU General Public License +# as published by the Free Software Foundation. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +# +# Usage: +# +# setversion +# [ $# -eq 1 ] || { echo "usage: setversion " >&2; exit 1; } VERSION=$1 @@ -7,7 +31,7 @@ VERSION=$1 case $VERSION in *.*.*.*) RELEASE=${VERSION##*.} - RPMVERSION=${VERSION%.*}-${RELEASE} + RPMVERSION=${VERSION%.*} SUFFIX="-$RELEASE" ;; *) diff --git a/tools/build/stage b/tools/build/stage index e012640ce..db6f0d0b1 100755 --- a/tools/build/stage +++ b/tools/build/stage @@ -1,4 +1,29 @@ -#/bin/sh +#!/bin/sh +# +# Stage a release on the master server +# +# (C) 2007 -- Tom Eastep (teastep@shorewall.net) +# +# +# This program is under GPL [http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt] +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of Version 2 of the GNU General Public License +# as published by the Free Software Foundation. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +# +# Usage: +# +# stage [-pclsxh] +# usage() { echo "Usage: stage [-pclsxh] " diff --git a/tools/build/upload b/tools/build/upload index d9c569752..2b59cd287 100755 --- a/tools/build/upload +++ b/tools/build/upload @@ -1,4 +1,29 @@ -#/bin/sh +#!/bin/sh +# +# Upload a release to the master server +# +# (C) 2007 -- Tom Eastep (teastep@shorewall.net) +# +# +# This program is under GPL [http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt] +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of Version 2 of the GNU General Public License +# as published by the Free Software Foundation. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +# +# Usage: +# +# upload [-pclsxh] +# usage() { echo "Usage: upload [-pclsxh] "