2005-11-17 20:05:16 +01:00
|
|
|
#/bin/sh
|
|
|
|
|
2006-03-11 17:21:15 +01:00
|
|
|
rpm=
|
2006-06-03 19:16:27 +02:00
|
|
|
literpm=
|
2006-03-11 17:21:15 +01:00
|
|
|
|
2006-02-24 20:53:09 +01:00
|
|
|
case $1 in
|
2006-02-24 20:57:21 +01:00
|
|
|
*.*[13569].*)
|
2006-02-24 20:53:09 +01:00
|
|
|
DEST="root@mail.shorewall.net:/srv/ftp/pub/shorewall/development/${1%.*}/shorewall-$1"
|
2006-06-22 05:34:29 +02:00
|
|
|
rpm=shorewall-${1}-1.noarch.rpm
|
2006-02-24 20:53:09 +01:00
|
|
|
;;
|
2006-03-11 04:50:41 +01:00
|
|
|
*Beta*|*RC*)
|
|
|
|
DEST="root@mail.shorewall.net:/srv/ftp/pub/shorewall/development/${1%.*}/shorewall-$1"
|
2006-03-11 17:30:11 +01:00
|
|
|
rpm=shorewall-${1%-*}-0${1#*-}.noarch.rpm
|
2006-06-03 19:16:27 +02:00
|
|
|
literpm=shorewall-lite-${1%-*}-0${1#*-}.noarch.rpm
|
2006-03-11 04:50:41 +01:00
|
|
|
;;
|
2006-02-24 20:53:09 +01:00
|
|
|
*)
|
|
|
|
DEST="root@mail.shorewall.net:/srv/ftp/pub/shorewall/${1%.*}/shorewall-$1"
|
2006-06-22 05:34:29 +02:00
|
|
|
rpm=shorewall-${1}-1.noarch.rpm
|
2006-02-24 20:53:09 +01:00
|
|
|
;;
|
|
|
|
esac
|
2005-11-17 20:05:16 +01:00
|
|
|
|
2006-03-11 17:30:11 +01:00
|
|
|
[ $# -eq 1 ] || { echo "Usage: $(basename $0) <version>"; exit 2; }
|
2005-11-17 20:05:16 +01:00
|
|
|
|
|
|
|
[ -d errata ] || mkdir errata
|
2006-03-11 17:30:11 +01:00
|
|
|
|
2005-11-17 20:05:16 +01:00
|
|
|
echo "There are no known problems in Shorewall version $1" > known_problems.txt
|
|
|
|
|
2006-06-19 17:00:29 +02:00
|
|
|
if [ -f shorewall-lite-${1}/releasenotes.txt ]; then
|
|
|
|
cat shorewall-${1}/releasenotes.txt shorewall-lite-${1}/releasenotes.txt > releasenotes.txt
|
|
|
|
else
|
2006-06-22 04:40:15 +02:00
|
|
|
cat shorewall-${1}/releasenotes.txt > releasenotes.txt
|
2006-06-19 17:00:29 +02:00
|
|
|
fi
|
|
|
|
|
|
|
|
scp -r errata known_problems.txt patch-$1 ${1}.* releasenotes.txt shorewall*${1}*.tgz* shorewall*${1}*.bz2* $rpm $literpm $DEST
|