From b0857aa6eb29b7635013f81024cc65f20677506f Mon Sep 17 00:00:00 2001 From: teastep Date: Thu, 20 Oct 2005 22:47:46 +0000 Subject: [PATCH] Add step to include Samples in tarball and RPM git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@2911 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb --- tools/build/makeshorewall | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tools/build/makeshorewall b/tools/build/makeshorewall index 32d353983..5bc77f130 100644 --- a/tools/build/makeshorewall +++ b/tools/build/makeshorewall @@ -81,6 +81,7 @@ BUILDRPM= BUILDXML= BUILDHTML= BUILDLRP= +SAMPLES= ################################################################################ # F U N C T I O N S ################################################################################ @@ -244,6 +245,7 @@ case $VERSION in DOCTAG=HEAD XMLPROJ=Shorewall-docs2 BUILDLRP= + SAMPLES=Yes ;; *) echo "Unsupported Version: $VERSION" @@ -300,6 +302,10 @@ if [ -n "${BUILDTARBALL}${BUILDRPM}" ]; then 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" + if [ -n "$SAMPLES" ]; then + do_or_die "cvs -z3 export -r $CVSTAG -d $SHOREWALLDIR/Samples Samples >> $LOGFILE 2>&1" + fi + if [ -n "$BUILDTARBALL" ]; then progress_message "Creating $DIR/$TARBALL..." do_or_die "tar -zcvf $TARBALL $SHOREWALLDIR >> $LOGFILE 2>&1"