2005-05-28 14:27:59 +02:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
|
|
|
# Shorewall Release Processing -- (C) 2003,2004,2005 -- Tom Eastep (teastep@shorewall.net)
|
2006-02-24 01:10:47 +01:00
|
|
|
# -- (C) 2005,2006 -- Cristian Rodriguez (webmaster@shorewall.net)
|
2006-02-24 02:55:55 +01:00
|
|
|
# Version : $Id$
|
2005-05-28 14:27:59 +02:00
|
|
|
#
|
2007-09-08 18:09:51 +02:00
|
|
|
# This program is under GPL [http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt]
|
2005-05-28 14:27:59 +02:00
|
|
|
#
|
|
|
|
# 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
|
2007-09-08 18:09:51 +02:00
|
|
|
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
2005-05-28 14:27:59 +02:00
|
|
|
#
|
|
|
|
# I install this script in /usr/local/bin/makeshorewall.
|
|
|
|
#
|
|
|
|
# Usage:
|
|
|
|
#
|
|
|
|
# makeshorewall [ -trhxl ] <version> [ <previous version> ]
|
|
|
|
#
|
|
|
|
# -t Build tarball
|
|
|
|
# -r Build RPM
|
2005-10-09 22:21:11 +02:00
|
|
|
# -h Build HTML documentation
|
2005-05-28 14:27:59 +02:00
|
|
|
# -x Build XML documentation
|
2007-03-25 01:04:09 +01:00
|
|
|
# -s Sign with GPG
|
2007-04-01 19:31:04 +02:00
|
|
|
# -p Build shorewall-perl
|
2005-05-28 14:27:59 +02:00
|
|
|
#
|
|
|
|
# If no options are given, all options are assumed.
|
|
|
|
#
|
|
|
|
# If <previous version> is given, a patch file reflecting the differences
|
2005-10-09 22:21:11 +02:00
|
|
|
# between that version and the current version ( <version> ) is
|
2005-05-28 14:27:59 +02:00
|
|
|
# generated. The directory ./shorewall-<previous version> must exist and
|
|
|
|
# contain the version against which the patch is generated.
|
|
|
|
################################################################################
|
|
|
|
# C O N F I G U R A T I O N
|
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# XSL Stylesheet to use for XML->HTML conversion
|
|
|
|
#
|
2007-01-04 17:25:40 +01:00
|
|
|
STYLESHEET=/usr/share/xml/docbook/stylesheet/nwalsh/current/xhtml/docbook.xsl
|
2005-05-28 14:27:59 +02:00
|
|
|
#
|
|
|
|
# Directory where the build log will be placed. The log has the name
|
|
|
|
# shorewall_build_<version>.log
|
|
|
|
#
|
2005-07-26 22:43:30 +02:00
|
|
|
LOGDIR=$PWD
|
2005-05-28 14:27:59 +02:00
|
|
|
#
|
|
|
|
# Your RPM build directory
|
|
|
|
#
|
2005-07-26 22:03:42 +02:00
|
|
|
RPMDIR=~/rpm/
|
2005-05-28 14:27:59 +02:00
|
|
|
#
|
|
|
|
# Directory where you want the release to be built
|
|
|
|
#
|
|
|
|
DIR=$PWD
|
2006-06-07 17:51:07 +02:00
|
|
|
#
|
|
|
|
# location and options for GnuPG
|
|
|
|
#
|
2007-01-04 17:25:40 +01:00
|
|
|
GPG="/usr/bin/gpg -ab --batch --comment 'To verify this, you can download our public key at https://lists.shorewall.net/shorewall.gpg.key'"
|
2006-12-04 20:09:13 +01:00
|
|
|
#
|
|
|
|
# SVN Repository
|
|
|
|
#
|
|
|
|
SVN=https://shorewall.svn.sourceforge.net/svnroot/shorewall
|
2006-12-24 00:23:08 +01:00
|
|
|
#
|
|
|
|
# Program that generates man pages from Docbook XML
|
|
|
|
#
|
2007-01-04 17:25:40 +01:00
|
|
|
DOCBOOK2MAN="docbook-to-man -C /usr/share/docbook2X/xslt/catalog.xml --utf8trans-map /usr/share/docbook2X/charmaps/roff.charmap"
|
2005-05-28 14:27:59 +02:00
|
|
|
################################################################################
|
|
|
|
# V A R I A B L E S
|
|
|
|
################################################################################
|
|
|
|
VERSION=
|
|
|
|
OLDVERSION=
|
|
|
|
SHOREWALLDIR=
|
2006-06-03 19:16:27 +02:00
|
|
|
SHOREWALLLITEDIR=
|
2005-05-28 14:27:59 +02:00
|
|
|
SOURCEDIR=
|
2006-02-24 01:10:47 +01:00
|
|
|
SVNBRANCH=
|
2006-06-03 19:16:27 +02:00
|
|
|
LITESVNBRANCH=
|
2005-05-28 14:27:59 +02:00
|
|
|
XMLPROJ=
|
|
|
|
RPMNAME=
|
2006-06-03 19:16:27 +02:00
|
|
|
LITERPMNAME=
|
2005-05-28 14:27:59 +02:00
|
|
|
TARBALL=
|
2006-06-03 19:16:27 +02:00
|
|
|
LITETARBALL=
|
2005-05-28 14:27:59 +02:00
|
|
|
LOGFILE=
|
|
|
|
HTMLDIR=
|
|
|
|
BUILDTARBALL=
|
|
|
|
BUILDRPM=
|
|
|
|
BUILDXML=
|
|
|
|
BUILDHTML=
|
2005-10-21 17:47:09 +02:00
|
|
|
SAMPLESTAG=
|
2006-06-03 19:16:27 +02:00
|
|
|
HASLITE=
|
2006-08-10 15:54:54 +02:00
|
|
|
SIGN=
|
2006-11-19 02:40:11 +01:00
|
|
|
MANPAGETAG=
|
2006-11-19 05:13:06 +01:00
|
|
|
LITEMANPAGETAG=
|
2007-03-25 01:04:09 +01:00
|
|
|
BUILDPERL=
|
|
|
|
PERLDIR=
|
|
|
|
PERLBRANCH=
|
|
|
|
PERLRPMNAME=
|
|
|
|
PERLTARBALL=
|
2005-05-28 14:27:59 +02:00
|
|
|
################################################################################
|
|
|
|
# F U N C T I O N S
|
|
|
|
################################################################################
|
2005-10-09 22:21:11 +02:00
|
|
|
progress_message()
|
2005-05-28 14:27:59 +02:00
|
|
|
{
|
|
|
|
echo >> $LOGFILE
|
|
|
|
echo "$@" | tee -a $LOGFILE
|
|
|
|
echo >> $LOGFILE
|
|
|
|
}
|
|
|
|
|
2005-10-09 22:21:11 +02:00
|
|
|
report()
|
2005-05-28 14:27:59 +02:00
|
|
|
{
|
|
|
|
echo "$@" | tee -a $LOGFILE
|
|
|
|
}
|
|
|
|
|
|
|
|
do_or_die()
|
|
|
|
{
|
|
|
|
eval $@ || { progress_message "Step \"$*\" FAILED" ; exit 2; }
|
|
|
|
}
|
|
|
|
|
|
|
|
fatal_error() {
|
2007-06-15 16:21:39 +02:00
|
|
|
progress_message "$*"
|
2005-05-28 14:27:59 +02:00
|
|
|
exit 2
|
|
|
|
}
|
|
|
|
|
|
|
|
list_search() # $1 = element to search for , $2-$n = list
|
|
|
|
{
|
|
|
|
local e=$1
|
|
|
|
|
|
|
|
while [ $# -gt 1 ]; do
|
|
|
|
shift
|
|
|
|
[ "x$e" = "x$1" ] && return 0
|
|
|
|
done
|
|
|
|
|
|
|
|
return 1
|
|
|
|
}
|
|
|
|
|
2005-10-09 22:21:11 +02:00
|
|
|
usage()
|
2005-05-28 14:27:59 +02:00
|
|
|
{
|
|
|
|
echo "usage: $(basename $0) [ -trhxl] <version> [ <old-version> ]"
|
|
|
|
exit 2
|
|
|
|
}
|
|
|
|
################################################################################
|
|
|
|
# E X E C U T I O N S T A R T S H E R E
|
|
|
|
################################################################################
|
2005-07-09 10:07:40 +02:00
|
|
|
|
|
|
|
set -e
|
|
|
|
set -u
|
|
|
|
|
2006-08-19 19:10:32 +02:00
|
|
|
|
2005-05-28 14:27:59 +02:00
|
|
|
done=
|
|
|
|
|
2005-07-23 00:43:08 +02:00
|
|
|
[ $# -eq 0 ] && usage
|
|
|
|
|
2005-05-28 14:27:59 +02:00
|
|
|
case $1 in
|
|
|
|
-*)
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
BUILDTARBALL=Yes
|
|
|
|
BUILDRPM=Yes
|
|
|
|
BUILDHTML=Yes
|
|
|
|
BUILDXML=Yes
|
|
|
|
BUILDRPM=Yes
|
|
|
|
done=Yes
|
2006-08-10 15:54:54 +02:00
|
|
|
SIGN=Yes
|
2005-05-28 14:27:59 +02:00
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
while [ -z "$done" ]; do
|
|
|
|
[ $# -eq 0 ] && break
|
2005-10-09 22:21:11 +02:00
|
|
|
|
2005-05-28 14:27:59 +02:00
|
|
|
option=$1
|
|
|
|
case $option in
|
|
|
|
-*)
|
|
|
|
option=${option#-}
|
|
|
|
|
|
|
|
[ -z "$option" ] && break
|
2005-10-09 22:21:11 +02:00
|
|
|
|
2005-05-28 14:27:59 +02:00
|
|
|
while [ -n "$option" ]; do
|
|
|
|
case $option in
|
|
|
|
t*)
|
|
|
|
BUILDTARBALL=Yes
|
|
|
|
option=${option#t}
|
|
|
|
;;
|
|
|
|
r*)
|
2005-08-24 22:46:56 +02:00
|
|
|
BUILDTARBALL=Yes
|
2005-05-28 14:27:59 +02:00
|
|
|
BUILDRPM=Yes
|
|
|
|
option=${option#r}
|
|
|
|
;;
|
|
|
|
h*)
|
|
|
|
BUILDHTML=Yes
|
|
|
|
option=${option#h}
|
|
|
|
;;
|
|
|
|
x*)
|
|
|
|
BUILDXML=Yes
|
|
|
|
option=${option#x}
|
|
|
|
;;
|
2006-08-09 03:07:17 +02:00
|
|
|
s*)
|
2006-08-10 15:54:54 +02:00
|
|
|
SIGN=Yes
|
2006-08-09 03:07:17 +02:00
|
|
|
option=${option#s}
|
|
|
|
;;
|
2007-03-25 01:04:09 +01:00
|
|
|
p*)
|
|
|
|
BUILDPERL=Yes
|
|
|
|
option=${option#p}
|
|
|
|
;;
|
2005-05-28 14:27:59 +02:00
|
|
|
*)
|
|
|
|
usage
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
done
|
|
|
|
shift
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
done=Yes
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
done
|
|
|
|
|
|
|
|
case $# in
|
|
|
|
1)
|
|
|
|
;;
|
|
|
|
2)
|
|
|
|
OLDVERSION=$2
|
|
|
|
;;
|
|
|
|
*)
|
2005-10-09 22:21:11 +02:00
|
|
|
usage
|
2005-05-28 14:27:59 +02:00
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
VERSION=$1
|
|
|
|
LOGFILE=$LOGDIR/shorewall_build_${VERSION}.log
|
|
|
|
touch $LOGFILE
|
|
|
|
progress_message "Build of Shorewall $VERSION on $(date)"
|
|
|
|
|
|
|
|
case $VERSION in
|
2006-03-18 09:35:03 +01:00
|
|
|
3.2.*)
|
2006-07-08 22:26:23 +02:00
|
|
|
SVNBRANCH="branches/3.2/Shorewall"
|
|
|
|
LITESVNBRANCH="branches/3.2/Shorewall-lite"
|
2007-05-07 19:54:29 +02:00
|
|
|
DOCTAG="branches/3.4/docs"
|
2006-03-18 09:35:03 +01:00
|
|
|
XMLPROJ="docs-3.2"
|
2006-11-10 17:38:27 +01:00
|
|
|
SAMPLESTAG="branches/3.2/Samples"
|
2006-08-11 16:07:06 +02:00
|
|
|
HASLITE=Yes
|
2005-05-28 14:27:59 +02:00
|
|
|
;;
|
2006-12-14 22:22:53 +01:00
|
|
|
3.4.*)
|
2007-03-24 17:39:48 +01:00
|
|
|
SVNBRANCH="branches/3.4/Shorewall"
|
|
|
|
LITESVNBRANCH="branches/3.4/Shorewall-lite"
|
2007-05-07 19:54:29 +02:00
|
|
|
DOCTAG="branches/3.4/docs"
|
2007-03-25 01:04:09 +01:00
|
|
|
XMLPROJ="docs-3.4"
|
2007-08-19 17:24:17 +02:00
|
|
|
SAMPLESTAG="branches/3.4/Samples"
|
2007-03-25 01:04:09 +01:00
|
|
|
HASLITE=Yes
|
2007-05-07 19:54:29 +02:00
|
|
|
MANPAGETAG=branches/3.4/manpages
|
|
|
|
LITEMANPAGETAG=branches/3.4/manpages-lite
|
2007-03-25 01:04:09 +01:00
|
|
|
;;
|
2006-03-11 02:36:01 +01:00
|
|
|
*)
|
2005-05-28 14:27:59 +02:00
|
|
|
echo "Unsupported Version: $VERSION"
|
|
|
|
exit 2
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
[ -d $DIR ] || { echo "Directory $DIR does not exist or is unaccessible" ; exit 2 ; }
|
|
|
|
|
|
|
|
progress_message "Distribution directory is $DIR"
|
|
|
|
|
|
|
|
cd $DIR
|
|
|
|
|
|
|
|
case $VERSION in
|
|
|
|
*Beta*|*RC*)
|
|
|
|
#
|
2006-03-18 09:35:03 +01:00
|
|
|
# Beta or Release Candidate
|
2005-05-28 14:27:59 +02:00
|
|
|
#
|
|
|
|
SHOREWALLDIR=shorewall-${VERSION%-*}
|
2006-06-03 19:16:27 +02:00
|
|
|
SHOREWALLLITEDIR=shorewall-lite-${VERSION%-*}
|
2005-05-28 14:27:59 +02:00
|
|
|
TARBALL=shorewall-${VERSION%-*}.tgz
|
2006-06-03 19:16:27 +02:00
|
|
|
LITETARBALL=shorewall-lite-${VERSION%-*}.tgz
|
2005-05-28 14:27:59 +02:00
|
|
|
RPMNAME=shorewall-${VERSION%-*}-0${VERSION#*-}.noarch.rpm
|
2006-06-03 19:16:27 +02:00
|
|
|
LITERPMNAME=shorewall-lite-${VERSION%-*}-0${VERSION#*-}.noarch.rpm
|
2007-04-01 19:31:04 +02:00
|
|
|
PERLRPMNAME=shorewall-perl-${VERSION%-*}-0${VERSION#*-}.noarch.rpm
|
|
|
|
PERLTARBALL=shorewall-perl-${VERSION%-*}.tgz
|
|
|
|
PERLDIR=shorewall-perl-${VERSION%-*}
|
2005-05-28 14:27:59 +02:00
|
|
|
;;
|
|
|
|
*)
|
|
|
|
#
|
|
|
|
# Normal Release
|
|
|
|
#
|
|
|
|
SHOREWALLDIR=shorewall-$VERSION
|
2006-06-03 19:16:27 +02:00
|
|
|
SHOREWALLLITEDIR=shorewall-lite-$VERSION
|
2005-05-28 14:27:59 +02:00
|
|
|
TARBALL=shorewall-$VERSION.tgz
|
2006-06-03 19:16:27 +02:00
|
|
|
LITETARBALL=shorewall-lite-$VERSION.tgz
|
2005-05-28 14:27:59 +02:00
|
|
|
RPMNAME=shorewall-${VERSION}-1.noarch.rpm
|
2006-06-03 19:16:27 +02:00
|
|
|
LITERPMNAME=shorewall-lite-${VERSION}-1.noarch.rpm
|
2007-04-01 19:31:04 +02:00
|
|
|
PERLRPMNAME=shorewall-perl-${VERSION}-1.noarch.rpm
|
|
|
|
PERLDIR=shorewall-perl-$VERSION
|
|
|
|
PERLTARBALL=shorewall-perl-$VERSION.tgz
|
2005-05-28 14:27:59 +02:00
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
HTMLDIR=shorewall-docs-html-$VERSION
|
|
|
|
|
|
|
|
if [ -n "${BUILDTARBALL}${BUILDRPM}" ]; then
|
|
|
|
report "Shorewall directory is $DIR/$SHOREWALLDIR"
|
2006-06-03 19:16:27 +02:00
|
|
|
report "Shorewall Lite directory is $DIR/$SHOREWALLLITEDIR"
|
2006-02-24 01:10:47 +01:00
|
|
|
report "SVN tag is $SVNBRANCH"
|
2006-06-03 19:16:27 +02:00
|
|
|
report "Lite SVN tag is $LITESVNBRANCH"
|
|
|
|
[ -n "$BUILDTARBALL" ] && report "TARBALL is $TARBALL" && report "LITETARBALL is $LITETARBALL"
|
|
|
|
[ -n "$BUILDRPM" ] && report "RPM is $RPMNAME" && report "LITERPM is $LITERPMNAME"
|
2005-05-28 14:27:59 +02:00
|
|
|
fi
|
|
|
|
|
|
|
|
[ -n "$BUILDHTML" ] && report "HTML Directory is $HTMLDIR"
|
|
|
|
|
2007-03-25 01:04:09 +01:00
|
|
|
if [ -n "$BUILDPERL" ]; then
|
2007-04-01 19:31:04 +02:00
|
|
|
report "shorewall-perl directory is $DIR/$PERLDIR"
|
2007-03-25 01:04:09 +01:00
|
|
|
report "Perl SVN tag is $PERLBRANCH"
|
|
|
|
report "Perl RPM is $PERLRPMNAME"
|
|
|
|
|
|
|
|
rm -rf $PERLDIR
|
|
|
|
|
|
|
|
progress_message "Exporting $PERLBRANCH from SVN..."
|
|
|
|
do_or_die "svn export --non-interactive --force ${SVN}/$PERLBRANCH $PERLDIR >> $LOGFILE 2>&1"
|
|
|
|
|
|
|
|
progress_message "Creating $DIR/$PERLTARBALL..."
|
|
|
|
do_or_die "tar -zcvf $PERLTARBALL $PERLDIR >> $LOGFILE 2>&1"
|
2007-04-01 19:31:04 +02:00
|
|
|
do_or_die "tar -jcvf shorewall-perl-${VERSION%-*}.tar.bz2 $PERLDIR >> $LOGFILE 2>&1"
|
2007-03-25 01:04:09 +01:00
|
|
|
|
|
|
|
if [ -n "$SIGN" ]; then
|
|
|
|
for shoresuffix in tgz tar.bz2; do
|
2007-04-01 19:31:04 +02:00
|
|
|
shoreball=shorewall-perl-${VERSION%-*}.${shoresuffix}
|
2007-03-25 01:04:09 +01:00
|
|
|
report "GPG signing $DIR/$shoreball"
|
|
|
|
rm -f ${shoreball}.asc
|
|
|
|
do_or_die "$GPG $shoreball"
|
|
|
|
done
|
|
|
|
fi
|
|
|
|
|
2007-04-01 19:31:04 +02:00
|
|
|
progress_message "Building $PERLRPMNAME..."
|
2007-03-25 01:04:09 +01:00
|
|
|
|
2007-04-01 19:31:04 +02:00
|
|
|
test -n "$SIGN" && SIGN="--sign"
|
|
|
|
rm -rf $RPMDIR/BUILD/shorewall-perl-${VERSION%-*}*
|
|
|
|
do_or_die "cp shorewall-perl-${VERSION%-*}.tgz $RPMDIR/SOURCES/"
|
|
|
|
do_or_die "cp $PERLDIR/shorewall-perl.spec $RPMDIR/SPECS/"
|
|
|
|
do_or_die "rpmbuild -ba $SIGN $RPMDIR/SPECS/shorewall-perl.spec >> $LOGFILE 2>&1"
|
2007-03-25 01:10:35 +01:00
|
|
|
do_or_die cp -a $RPMDIR/RPMS/noarch/$PERLRPMNAME .
|
2007-04-04 00:48:01 +02:00
|
|
|
|
|
|
|
> $VERSION.md5sums
|
|
|
|
> $VERSION.sha1sums
|
|
|
|
|
|
|
|
for file in *; do
|
|
|
|
case $file in
|
|
|
|
*-perl-$VERSION[-.]*tgz|*-perl-$VERSION[-.]*rpm|*perl-$VERSION[-.]*bz2)
|
|
|
|
do_or_die "md5sum $file >> $VERSION.md5sums"
|
|
|
|
do_or_die "sha1sum $file >> $VERSION.sha1sums"
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
done
|
2007-03-25 01:04:09 +01:00
|
|
|
fi
|
|
|
|
|
2005-05-28 14:27:59 +02:00
|
|
|
if [ -n "${BUILDTARBALL}${BUILDRPM}" ]; then
|
2006-02-24 01:10:47 +01:00
|
|
|
progress_message "Exporting $SVNBRANCH from SVN..."
|
2005-05-28 14:27:59 +02:00
|
|
|
|
|
|
|
rm -rf $SHOREWALLDIR
|
2006-06-03 19:16:27 +02:00
|
|
|
rm -rf $SHOREWALLLITEDIR
|
2005-05-28 14:27:59 +02:00
|
|
|
|
2006-12-04 20:09:13 +01:00
|
|
|
do_or_die "svn export --non-interactive --force ${SVN}/$SVNBRANCH $SHOREWALLDIR >> $LOGFILE 2>&1"
|
2006-08-19 01:46:13 +02:00
|
|
|
|
|
|
|
if [ -n "$HASLITE" ]; then
|
|
|
|
progress_message "Exporting $LITESVNBRANCH from SVN..."
|
2006-12-04 20:09:13 +01:00
|
|
|
do_or_die "svn export --non-interactive --force ${SVN}/$LITESVNBRANCH $SHOREWALLLITEDIR >> $LOGFILE 2>&1"
|
2006-09-07 22:37:12 +02:00
|
|
|
do_or_die "cp $SHOREWALLDIR/modules $SHOREWALLLITEDIR >> $LOGFILE 2>&1"
|
2006-09-03 19:05:13 +02:00
|
|
|
if [ -f $SHOREWALLDIR/lib.base ]; then
|
|
|
|
do_or_die "cp $SHOREWALLDIR/lib.base $SHOREWALLLITEDIR >> $LOGFILE 2>&1"
|
2006-10-28 16:46:43 +02:00
|
|
|
if [ -f $SHOREWALLDIR/lib.cli ]; then
|
|
|
|
do_or_die "cp $SHOREWALLDIR/lib.cli $SHOREWALLLITEDIR >> $LOGFILE 2>&1"
|
|
|
|
fi
|
2007-01-01 01:40:42 +01:00
|
|
|
if [ -f $SHOREWALLDIR/wait4ifup ]; then
|
|
|
|
do_or_die "cp $SHOREWALLDIR/wait4ifup $SHOREWALLLITEDIR >> $LOGFILE 2>&1"
|
|
|
|
fi
|
2006-09-03 19:05:13 +02:00
|
|
|
else
|
|
|
|
do_or_die "cp $SHOREWALLDIR/functions $SHOREWALLLITEDIR >> $LOGFILE 2>&1"
|
|
|
|
fi
|
2006-10-20 21:08:49 +02:00
|
|
|
do_or_die "cp $SHOREWALLDIR/changelog.txt $SHOREWALLDIR/releasenotes.txt $SHOREWALLLITEDIR >> $LOGFILE 2>&1"
|
2006-08-19 01:46:13 +02:00
|
|
|
fi
|
2006-02-22 23:44:30 +01:00
|
|
|
|
2006-02-10 20:52:48 +01:00
|
|
|
fgrep VERSION=$VERSION $SHOREWALLDIR/install.sh > /dev/null 2>&1 || fatal_error "install.sh has wrong version"
|
|
|
|
fgrep VERSION=$VERSION $SHOREWALLDIR/uninstall.sh > /dev/null 2>&1 || fatal_error "uninstall.sh has wrong version"
|
|
|
|
fgrep VERSION=$VERSION $SHOREWALLDIR/fallback.sh > /dev/null 2>&1 || fatal_error "fallback.sh has wrong version"
|
2006-06-03 19:16:27 +02:00
|
|
|
if [ -n "$HASLITE" ]; then
|
|
|
|
fgrep VERSION=$VERSION $SHOREWALLLITEDIR/install.sh > /dev/null 2>&1 || fatal_error "Lite install.sh has wrong version"
|
|
|
|
fgrep VERSION=$VERSION $SHOREWALLLITEDIR/uninstall.sh > /dev/null 2>&1 || fatal_error "Lite uninstall.sh has wrong version"
|
|
|
|
fgrep VERSION=$VERSION $SHOREWALLLITEDIR/fallback.sh > /dev/null 2>&1 || fatal_error "Lite fallback.sh has wrong version"
|
|
|
|
fi
|
2005-05-28 14:27:59 +02:00
|
|
|
|
2006-08-27 22:49:16 +02:00
|
|
|
if [ -n "$SAMPLESTAG" ]; then
|
|
|
|
cd $SHOREWALLDIR
|
2006-12-04 20:09:13 +01:00
|
|
|
do_or_die "svn export --non-interactive --force ${SVN}/$SAMPLESTAG Samples >> $LOGFILE 2>&1"
|
2006-08-27 22:49:16 +02:00
|
|
|
cd $DIR
|
2005-10-21 00:47:46 +02:00
|
|
|
fi
|
|
|
|
|
2006-11-19 02:37:32 +01:00
|
|
|
if [ -n "$MANPAGETAG" ]; then
|
|
|
|
cd $SHOREWALLDIR
|
2006-11-19 02:42:37 +01:00
|
|
|
progress_message "Exporting $MANPAGETAG from SVN..."
|
2006-12-04 20:09:13 +01:00
|
|
|
do_or_die "svn export --non-interactive --force ${SVN}/$MANPAGETAG manpages >> $LOGFILE 2>&1"
|
2006-11-19 02:37:32 +01:00
|
|
|
cd manpages
|
2006-11-19 03:20:59 +01:00
|
|
|
for f in *.xml; do
|
2006-11-19 03:27:41 +01:00
|
|
|
if [ $f != shorewall-template.xml ]; then
|
2006-11-19 03:20:59 +01:00
|
|
|
progress_message "Generating Man Page from $f..."
|
2006-12-24 00:23:08 +01:00
|
|
|
$DOCBOOK2MAN $f
|
2006-11-19 03:20:59 +01:00
|
|
|
fi
|
2006-11-19 02:37:32 +01:00
|
|
|
done
|
|
|
|
rm *.xml
|
2007-01-26 00:52:50 +01:00
|
|
|
perl -p -i'' -e 's/ \[.*?html\]//g' *.5 *.8
|
2006-11-19 02:37:32 +01:00
|
|
|
cd $DIR
|
2006-11-19 05:13:06 +01:00
|
|
|
|
|
|
|
cd $SHOREWALLLITEDIR
|
2007-01-02 17:01:46 +01:00
|
|
|
|
2006-11-19 05:16:00 +01:00
|
|
|
progress_message "Exporting $LITEMANPAGETAG from SVN..."
|
2006-12-04 20:09:13 +01:00
|
|
|
do_or_die "svn export --non-interactive --force ${SVN}/$LITEMANPAGETAG manpages >> $LOGFILE 2>&1"
|
2006-11-19 05:13:06 +01:00
|
|
|
cd manpages
|
|
|
|
for f in *.xml; do
|
|
|
|
if [ $f != shorewall-template.xml ]; then
|
|
|
|
progress_message "Generating Man Page from $f..."
|
2006-12-24 00:23:08 +01:00
|
|
|
$DOCBOOK2MAN $f
|
2006-11-19 05:13:06 +01:00
|
|
|
fi
|
|
|
|
done
|
|
|
|
rm *.xml
|
2007-01-26 00:52:50 +01:00
|
|
|
perl -p -i'' -e 's/ \[.*?html\]//g' *.5 *.8
|
2006-11-19 05:13:06 +01:00
|
|
|
cd $DIR
|
2006-11-19 02:37:32 +01:00
|
|
|
fi
|
|
|
|
|
2005-11-30 00:53:28 +01:00
|
|
|
do_or_die "rm -rf $SHOREWALLDIR/debian"
|
|
|
|
|
2005-10-09 22:21:11 +02:00
|
|
|
if [ -n "$BUILDTARBALL" ]; then
|
2006-08-19 17:37:54 +02:00
|
|
|
|
2006-08-19 01:46:13 +02:00
|
|
|
progress_message "Creating $DIR/$TARBALL..."
|
2006-08-19 17:37:54 +02:00
|
|
|
|
2005-05-28 14:27:59 +02:00
|
|
|
do_or_die "tar -zcvf $TARBALL $SHOREWALLDIR >> $LOGFILE 2>&1"
|
2005-10-09 22:21:11 +02:00
|
|
|
do_or_die "tar -jcvf shorewall-${VERSION%-*}.tar.bz2 $SHOREWALLDIR >> $LOGFILE 2>&1"
|
2006-08-09 03:07:17 +02:00
|
|
|
if [ -n "$SIGN" ]; then
|
2006-06-03 19:16:27 +02:00
|
|
|
for shoresuffix in tgz tar.bz2; do
|
2006-08-09 03:07:17 +02:00
|
|
|
shoreball=shorewall-${VERSION%-*}.${shoresuffix}
|
2006-06-03 19:16:27 +02:00
|
|
|
report "GPG signing $DIR/$shoreball"
|
|
|
|
rm -f ${shoreball}.asc
|
|
|
|
do_or_die "$GPG $shoreball"
|
|
|
|
done
|
|
|
|
fi
|
2006-08-09 03:07:17 +02:00
|
|
|
if [ -n "$HASLITE" ]; then
|
|
|
|
progress_message "Creating $DIR/$LITETARBALL..."
|
|
|
|
do_or_die "tar -zcvf $LITETARBALL $SHOREWALLLITEDIR >> $LOGFILE 2>&1"
|
|
|
|
do_or_die "tar -jcvf shorewall-lite-${VERSION%-*}.tar.bz2 $SHOREWALLLITEDIR >> $LOGFILE 2>&1"
|
|
|
|
if [ -n "$SIGN" ]; then
|
|
|
|
for shoresuffix in tgz tar.bz2; do
|
|
|
|
shoreball=shorewall-lite-${VERSION%-*}.${shoresuffix}
|
|
|
|
report "GPG signing $DIR/$shoreball"
|
|
|
|
rm -f ${shoreball}.asc
|
|
|
|
do_or_die "$GPG $shoreball"
|
|
|
|
done
|
|
|
|
fi
|
|
|
|
fi
|
2005-05-28 14:27:59 +02:00
|
|
|
fi
|
|
|
|
|
|
|
|
if [ -n "$BUILDRPM" ]; then
|
|
|
|
progress_message "Building $RPMNAME..."
|
|
|
|
|
2006-08-09 03:07:17 +02:00
|
|
|
test -n "$SIGN" && SIGN="--sign"
|
2006-12-24 01:24:06 +01:00
|
|
|
rm -rf $RPMDIR/BUILD/shorewall-${VERSION%-*}
|
|
|
|
do_or_die "cp shorewall-${VERSION%-*}.tgz $RPMDIR/SOURCES/"
|
|
|
|
do_or_die "cp $SHOREWALLDIR/shorewall.spec $RPMDIR/SPECS/"
|
|
|
|
do_or_die "rpmbuild -ba $SIGN $RPMDIR/SPECS/shorewall.spec >> $LOGFILE 2>&1"
|
2005-05-28 14:27:59 +02:00
|
|
|
do_or_die cp -a $RPMDIR/RPMS/noarch/$RPMNAME .
|
2006-06-03 19:16:27 +02:00
|
|
|
|
|
|
|
if [ -n "$HASLITE" ]; then
|
|
|
|
progress_message "Building $LITERPMNAME..."
|
|
|
|
|
2006-12-24 01:24:06 +01:00
|
|
|
rm -rf $RPMDIR/BUILD/shorewall-${VERSION%-*}
|
|
|
|
do_or_die "cp shorewall-lite-${VERSION%-*}.tgz $RPMDIR/SOURCES/"
|
|
|
|
do_or_die "cp $SHOREWALLLITEDIR/shorewall-lite.spec $RPMDIR/SPECS/"
|
|
|
|
do_or_die "rpmbuild -ba $SIGN $RPMDIR/SPECS/shorewall-lite.spec >> $LOGFILE 2>&1"
|
2006-06-03 19:16:27 +02:00
|
|
|
do_or_die cp -a $RPMDIR/RPMS/noarch/$LITERPMNAME .
|
|
|
|
fi
|
2005-05-28 14:27:59 +02:00
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ -n "${BUILDXML}${BUILDHTML}" ]; then
|
2006-02-24 01:10:47 +01:00
|
|
|
progress_message "Exporting $XMLPROJ from SVN..."
|
2005-05-28 14:27:59 +02:00
|
|
|
|
|
|
|
rm -rf $XMLPROJ
|
|
|
|
rm -rf shorewall-docs-xml-$VERSION
|
|
|
|
|
2006-12-04 20:09:13 +01:00
|
|
|
do_or_die "svn export --non-interactive --force ${SVN}/$DOCTAG $XMLPROJ >> $LOGFILE 2>&1"
|
2005-05-28 14:27:59 +02:00
|
|
|
do_or_die mv $XMLPROJ shorewall-docs-xml-$VERSION
|
|
|
|
|
|
|
|
rm -f shorewall-docs-xml-$VERSION/images/*.vsd
|
|
|
|
rm -f shorewall-docs-xml-$VERSION/images/~*
|
|
|
|
rm -f shorewall-docs-xml-$VERSION/images/*.JPG
|
|
|
|
rm -f shorewall-docs-xml-$VERSION/images/publish
|
|
|
|
rm -f shorewall-docs-xml-$VERSION/images/Thumbs.db
|
|
|
|
|
|
|
|
if [ -n "$BUILDXML" ]; then
|
2005-07-27 20:01:51 +02:00
|
|
|
progress_message "Creating $DIR/shorewall-docs-xml-$VERSION tarballs"
|
|
|
|
do_or_die "tar -zcvf shorewall-docs-xml-$VERSION.tgz shorewall-docs-xml-$VERSION >> $LOGFILE 2>&1"
|
2005-07-23 00:43:08 +02:00
|
|
|
do_or_die "tar -jcvf shorewall-docs-xml-$VERSION.tar.bz2 shorewall-docs-xml-$VERSION >> $LOGFILE 2>&1"
|
2006-08-09 03:07:17 +02:00
|
|
|
if [ -n "$SIGN" ]; then
|
|
|
|
for shoresuffix in tgz tar.bz2; do
|
|
|
|
xmlball=shorewall-docs-xml-$VERSION.${shoresuffix}
|
|
|
|
report "GPG signing $DIR/$xmlball tarball"
|
|
|
|
rm -f ${xmlball}.asc
|
|
|
|
do_or_die "$GPG $xmlball"
|
|
|
|
done
|
|
|
|
fi
|
2005-05-28 14:27:59 +02:00
|
|
|
fi
|
|
|
|
|
|
|
|
if [ -n "$BUILDHTML" ]; then
|
|
|
|
progress_message "Building $HTMLDIR ..."
|
|
|
|
|
|
|
|
rm -rf $HTMLDIR
|
|
|
|
|
|
|
|
do_or_die mkdir $HTMLDIR
|
|
|
|
do_or_die mkdir $HTMLDIR/images
|
|
|
|
#
|
|
|
|
# The original HTML documents were created using MS FrontPage and used
|
|
|
|
# the .htm suffix. The remainder use the .html suffix.
|
|
|
|
#
|
|
|
|
HTMFILES="
|
|
|
|
6to4.htm
|
|
|
|
blacklisting_support.htm
|
|
|
|
configuration_file_basics.htm
|
|
|
|
CorpNetwork.htm
|
|
|
|
dhcp.htm
|
|
|
|
Documentation.htm
|
|
|
|
errata.htm
|
|
|
|
fallback.htm
|
|
|
|
FAQ.htm
|
|
|
|
GnuCopyright.htm
|
|
|
|
Install.htm
|
|
|
|
IPIP.htm
|
|
|
|
IPSEC.htm
|
|
|
|
kernel.htm
|
|
|
|
myfiles.htm
|
|
|
|
NAT.htm
|
|
|
|
ports.htm
|
|
|
|
PPTP.htm
|
|
|
|
ProxyARP.htm
|
|
|
|
quotes.htm
|
|
|
|
samba.htm
|
|
|
|
shorewall_extension_scripts.htm
|
|
|
|
shorewall_features.htm
|
|
|
|
shorewall_mirrors.htm
|
|
|
|
shorewall_prerequisites.htm
|
|
|
|
shorewall_quickstart_guide.htm
|
|
|
|
shorewall_setup_guide_fr.htm
|
|
|
|
shorewall_setup_guide.htm
|
|
|
|
Shorewall_sfindex_frame.htm
|
|
|
|
standalone.htm
|
|
|
|
starting_and_stopping_shorewall.htm
|
|
|
|
support.htm
|
|
|
|
three-interface.htm
|
|
|
|
traffic_shaping.htm
|
|
|
|
troubleshoot.htm
|
|
|
|
two-interface.htm
|
|
|
|
upgrade_issues.htm
|
|
|
|
VPN.htm
|
|
|
|
whitelisting_under_shorewall.htm"
|
2005-10-09 22:21:11 +02:00
|
|
|
|
2007-01-19 23:48:34 +01:00
|
|
|
NOTOC="
|
|
|
|
Documentation_Index.xml
|
|
|
|
ECN.xml
|
|
|
|
fallback.xml
|
|
|
|
GettingStarted.xml
|
|
|
|
IPP2P.xml
|
|
|
|
ping.xml
|
|
|
|
ProxyARP.xml
|
2007-01-20 20:43:47 +01:00
|
|
|
Shorewall_Doesnt.xml
|
2007-01-19 23:48:34 +01:00
|
|
|
shorewall_features.xml
|
|
|
|
shorewall_prerequisites.xml
|
|
|
|
SimpleBridge.xml"
|
|
|
|
|
2005-05-28 14:27:59 +02:00
|
|
|
for file in shorewall-docs-xml-$VERSION/*.xml; do
|
|
|
|
a=$(basename $file)
|
|
|
|
b=${a%.*}
|
|
|
|
list_search $b.htm $HTMFILES && b=$b.htm || b=$b.html
|
|
|
|
f="shorewall-docs-html-$VERSION/$b"
|
2007-01-19 23:48:34 +01:00
|
|
|
list_search $1 $NOTOC && GENTOC="--stringparam generate.toc ''" || GENTOC=
|
2007-08-08 21:59:40 +02:00
|
|
|
|
|
|
|
case $file in
|
|
|
|
*_ru.xml)
|
|
|
|
LANGUAGE="--stringparam l10n.gentext.default.language ru"
|
|
|
|
;;
|
|
|
|
*_fr.xml)
|
2007-08-08 22:21:01 +02:00
|
|
|
LANGUAGE="--stringparam l10n.gentext.default.language fr"
|
2007-08-08 21:59:40 +02:00
|
|
|
;;
|
|
|
|
*)
|
|
|
|
LANGUAGE=
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
2005-05-28 14:27:59 +02:00
|
|
|
report "Converting $DIR/$file from XML to HTML ($DIR/$f) ..."
|
2005-10-09 22:21:11 +02:00
|
|
|
|
2007-01-19 23:48:34 +01:00
|
|
|
do_or_die xsltproc --output $f --stringparam html.stylesheet html.css --stringparam ulink.target _self $GENTOC -param toc.section.depth 3 $STYLESHEET $file
|
2005-05-28 14:27:59 +02:00
|
|
|
done
|
|
|
|
|
|
|
|
progress_message "Copying images to $DIR/$HTMLDIR/images ..."
|
|
|
|
|
|
|
|
do_or_die cp -a shorewall-docs-xml-$VERSION/images/*.png $HTMLDIR/images
|
|
|
|
do_or_die cp -a shorewall-docs-xml-$VERSION/images/*.gif $HTMLDIR/images
|
|
|
|
do_or_die cp -a shorewall-docs-xml-$VERSION/images/*.jpg $HTMLDIR/images
|
|
|
|
do_or_die cp -a shorewall-docs-xml-$VERSION/*.css $HTMLDIR
|
|
|
|
|
|
|
|
do_or_die ln -s Documentation_Index.html shorewall-docs-html-$VERSION/index.html
|
2005-10-09 22:21:11 +02:00
|
|
|
|
2005-07-23 00:43:08 +02:00
|
|
|
progress_message "Creating $DIR/shorewall-docs-html-$VERSION tarballs ..."
|
2005-10-09 22:21:11 +02:00
|
|
|
|
2005-05-28 14:27:59 +02:00
|
|
|
do_or_die "tar -zcvf shorewall-docs-html-$VERSION.tgz shorewall-docs-html-$VERSION >> $LOGFILE 2>&1"
|
2005-07-23 00:43:08 +02:00
|
|
|
do_or_die "tar -jcvf shorewall-docs-html-$VERSION.tar.bz2 shorewall-docs-html-$VERSION >> $LOGFILE 2>&1"
|
2006-08-09 03:07:17 +02:00
|
|
|
if [ -n "$SIGN" ]; then
|
|
|
|
for shoresuffix in tgz tar.bz2; do
|
|
|
|
htmlball=shorewall-docs-html-$VERSION.${shoresuffix}
|
|
|
|
report "GPG signing $DIR/$htmlball tarball"
|
|
|
|
rm -f ${htmlball}.asc
|
|
|
|
do_or_die "$GPG $htmlball"
|
|
|
|
done
|
|
|
|
fi
|
2005-05-28 14:27:59 +02:00
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
[ -n "$BUILDTARBALL" ] && case $VERSION in
|
|
|
|
*Beta*|*RC*)
|
|
|
|
#
|
2005-10-09 22:21:11 +02:00
|
|
|
# The original tarball created above didn't include the -Beta or -RC portion of the
|
2005-05-28 14:27:59 +02:00
|
|
|
# name in either the tarball name or the directory name. Create it here
|
|
|
|
#
|
|
|
|
progress_message "Creating $DIR/shorewall-$VERSION..."
|
|
|
|
|
|
|
|
rm -rf shorewall-$VERSION
|
2005-10-09 22:21:11 +02:00
|
|
|
|
2005-05-28 14:27:59 +02:00
|
|
|
do_or_die mv $SHOREWALLDIR shorewall-$VERSION
|
2005-10-09 22:21:11 +02:00
|
|
|
|
2005-05-28 14:27:59 +02:00
|
|
|
progress_message "Creating $DIR/shorewall-${VERSION}.tgz ..."
|
2005-10-09 22:21:11 +02:00
|
|
|
|
2005-07-27 20:01:51 +02:00
|
|
|
do_or_die "tar -zcvf shorewall-${VERSION}.tgz shorewall-$VERSION >> $LOGFILE 2>&1"
|
2005-07-23 00:43:08 +02:00
|
|
|
do_or_die "tar -jcvf shorewall-$VERSION.tar.bz2 shorewall-$VERSION >> $LOGFILE 2>&1"
|
2005-10-09 22:21:11 +02:00
|
|
|
|
2006-08-09 03:07:17 +02:00
|
|
|
if [ -n "$SIGN" ]; then
|
|
|
|
for shoresuffix in tgz tar.bz2; do
|
|
|
|
betaball=shorewall-$VERSION.${shoresuffix}
|
|
|
|
report "GPG signing $DIR/$betaball tarball"
|
|
|
|
rm -f ${betaball}.asc
|
|
|
|
do_or_die "$GPG $betaball"
|
|
|
|
done
|
|
|
|
fi
|
2006-06-03 19:16:27 +02:00
|
|
|
|
|
|
|
|
|
|
|
if [ -n "$HASLITE" ]; then
|
|
|
|
progress_message "Creating $DIR/shorewall-lite-$VERSION..."
|
|
|
|
|
|
|
|
rm -rf shorewall-lite-$VERSION
|
|
|
|
|
|
|
|
do_or_die mv $SHOREWALLLITEDIR shorewall-lite-$VERSION
|
|
|
|
|
|
|
|
|
|
|
|
progress_message "Creating $DIR/shorewall-lite-${VERSION}.tgz ..."
|
|
|
|
|
|
|
|
do_or_die "tar -zcvf shorewall-lite-${VERSION}.tgz shorewall-lite-$VERSION >> $LOGFILE 2>&1"
|
|
|
|
do_or_die "tar -jcvf shorewall-lite-$VERSION.tar.bz2 shorewall-lite-$VERSION >> $LOGFILE 2>&1"
|
|
|
|
|
2006-08-09 03:07:17 +02:00
|
|
|
if [ -n "$SIGN" ]; then
|
|
|
|
for shoresuffix in tgz tar.bz2; do
|
|
|
|
betaball=shorewall-lite-$VERSION.${shoresuffix}
|
|
|
|
report "GPG signing $DIR/$betaball tarball"
|
|
|
|
rm -f ${betaball}.asc
|
|
|
|
do_or_die "$GPG $betaball"
|
|
|
|
done
|
|
|
|
fi
|
2006-06-03 19:16:27 +02:00
|
|
|
fi
|
2006-02-24 20:52:07 +01:00
|
|
|
;;
|
2005-05-28 14:27:59 +02:00
|
|
|
esac
|
|
|
|
|
2006-02-24 20:52:07 +01:00
|
|
|
progress_message "Creating md5sums and sha1sums"
|
|
|
|
|
|
|
|
rm -f $VERSION.md5sums $VERSION.sha1sums
|
2006-02-10 20:52:48 +01:00
|
|
|
|
2006-02-25 18:06:36 +01:00
|
|
|
#
|
|
|
|
# The following rather awkward algorithm gets around the problem of builds that don't
|
|
|
|
# include the RPM
|
|
|
|
#
|
2006-04-26 01:01:25 +02:00
|
|
|
case $VERSION in
|
|
|
|
*Beta*|*RC*)
|
|
|
|
do_or_die "md5sum shorewall-${VERSION%-*}-0${VERSION#*-}.noarch.rpm >> $VERSION.md5sums"
|
|
|
|
do_or_die "sha1sum shorewall-${VERSION%-*}-0${VERSION#*-}.noarch.rpm >> $VERSION.sha1sums"
|
2006-06-03 19:16:27 +02:00
|
|
|
if [ -n "$HASLITE" ]; then
|
|
|
|
do_or_die "md5sum shorewall-lite-${VERSION%-*}-0${VERSION#*-}.noarch.rpm >> $VERSION.md5sums"
|
|
|
|
do_or_die "sha1sum shorewall-lite-${VERSION%-*}-0${VERSION#*-}.noarch.rpm >> $VERSION.sha1sums"
|
|
|
|
fi
|
2006-04-26 01:01:25 +02:00
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
2006-02-24 20:52:07 +01:00
|
|
|
for file in *; do
|
|
|
|
case $file in
|
2006-02-24 21:03:36 +01:00
|
|
|
*$VERSION[-.]*tgz|*$VERSION[-.]*rpm|*$VERSION[-.]*bz2)
|
2006-02-24 20:52:07 +01:00
|
|
|
do_or_die "md5sum $file >> $VERSION.md5sums"
|
|
|
|
do_or_die "sha1sum $file >> $VERSION.sha1sums"
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
done
|
2006-02-10 20:52:48 +01:00
|
|
|
|
2006-02-10 21:31:51 +01:00
|
|
|
if [ -n "$OLDVERSION" ]; then
|
|
|
|
progress_message "Creating patch-$VERSION ..."
|
|
|
|
|
2007-08-19 17:35:08 +02:00
|
|
|
diff -Naur -X $(dirname $0)/exclude.txt shorewall-$OLDVERSION shorewall-$VERSION > patch-$VERSION || true
|
2006-10-20 21:11:12 +02:00
|
|
|
if [ -n "$HASLITE" ]; then
|
2006-12-12 22:51:29 +01:00
|
|
|
diff -Naur -X $(dirname $0)/exclude.txt shorewall-lite-$OLDVERSION shorewall-lite-$VERSION >> patch-$VERSION || true
|
2006-10-20 21:11:12 +02:00
|
|
|
fi
|
2006-02-10 21:31:51 +01:00
|
|
|
fi
|
|
|
|
|
2005-05-28 14:27:59 +02:00
|
|
|
progress_message "Shorewall $VERSION Build complete - $(date)"
|