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
This commit is contained in:
teastep 2007-12-12 16:04:52 +00:00
parent a967ff2946
commit 76bbd985cd
3 changed files with 78 additions and 4 deletions

View File

@ -1,5 +1,29 @@
#!/bin/sh #!/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 <version>
#
[ $# -eq 1 ] || { echo "usage: setversion <version>" >&2; exit 1; } [ $# -eq 1 ] || { echo "usage: setversion <version>" >&2; exit 1; }
VERSION=$1 VERSION=$1
@ -7,7 +31,7 @@ VERSION=$1
case $VERSION in case $VERSION in
*.*.*.*) *.*.*.*)
RELEASE=${VERSION##*.} RELEASE=${VERSION##*.}
RPMVERSION=${VERSION%.*}-${RELEASE} RPMVERSION=${VERSION%.*}
SUFFIX="-$RELEASE" SUFFIX="-$RELEASE"
;; ;;
*) *)

View File

@ -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] <version>
#
usage() { usage() {
echo "Usage: stage [-pclsxh] <version>" echo "Usage: stage [-pclsxh] <version>"

View File

@ -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] <version>
#
usage() { usage() {
echo "Usage: upload [-pclsxh] <version>" echo "Usage: upload [-pclsxh] <version>"