From cf1e4622784e1a92c87e0989ca31066bbb445422 Mon Sep 17 00:00:00 2001 From: paulgear Date: Fri, 22 Jul 2005 22:43:08 +0000 Subject: [PATCH] Adding fixed version of recent patches by Cristian & Tom git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@2393 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb --- tools/build/makeshorewall | 31 ++++++++++++++++++++++++++++--- tools/build/publish | 9 ++++----- 2 files changed, 32 insertions(+), 8 deletions(-) diff --git a/tools/build/makeshorewall b/tools/build/makeshorewall index 02d2a49c0..22e578211 100644 --- a/tools/build/makeshorewall +++ b/tools/build/makeshorewall @@ -123,12 +123,13 @@ usage() # E X E C U T I O N S T A R T S H E R E ################################################################################ -# Added by Paul Gear 2005-07-09, just in case i've screwed up the CVS changes. set -e set -u done= +[ $# -eq 0 ] && usage + case $1 in -*) ;; @@ -292,6 +293,11 @@ if [ -n "${BUILDTARBALL}${BUILDRPM}" ]; then if [ -n "$BUILDTARBALL" ]; then progress_message "Creating $DIR/$TARBALL..." do_or_die "tar -zcvf $TARBALL $SHOREWALLDIR >> $LOGFILE 2>&1" + do_or_die "tar -jcvf shorewall-$VERSION.tar.bz2 $SHOREWALLDIR >> $LOGFILE 2>&1" + for shoreball in shorewall-$VERSION.t*; do + do_or_die "sha1sum $shoreball >> $VERSION.sha1sums" + do_or_die "md5sum $shoreball >> $VERSION.md5sums" + done fi if [ -n "$BUILDRPM" ]; then @@ -299,6 +305,8 @@ if [ -n "${BUILDTARBALL}${BUILDRPM}" ]; then do_or_die "rpmbuild -tb $TARBALL >> $LOGFILE 2>&1" do_or_die cp -a $RPMDIR/RPMS/noarch/$RPMNAME . + do_or_die "sha1sum shorewall-${VERSION}-1.noarch.rpm >> $VERSION.sha1sums" + do_or_die "md5sum shorewall-${VERSION}-1.noarch.rpm >> $VERSION.md5sums" fi fi @@ -320,6 +328,11 @@ if [ -n "${BUILDXML}${BUILDHTML}" ]; then if [ -n "$BUILDXML" ]; then progress_message "Creating $DIR/shorewall-docs-xml-$VERSION.tgz..." do_or_die "tar -zcvf shorewall-docs-xml-$VERSION.tgz shorewall-docs-xml-$VERSION >> $LOGFILE 2>&1" + do_or_die "tar -jcvf shorewall-docs-xml-$VERSION.tar.bz2 shorewall-docs-xml-$VERSION >> $LOGFILE 2>&1" + for xmlball in shorewall-docs-xml-$VERSION.t*; do + do_or_die "sha1sum $xmlball >> $VERSION.sha1sums" + do_or_die "md5sum $xmlball >> $VERSION.md5sums" + done fi if [ -n "$BUILDHTML" ]; then @@ -394,9 +407,15 @@ if [ -n "${BUILDXML}${BUILDHTML}" ]; then do_or_die ln -s Documentation_Index.html shorewall-docs-html-$VERSION/index.html - progress_message "Creating $DIR/shorewall-docs-html-$VERSION.tgz ..." + progress_message "Creating $DIR/shorewall-docs-html-$VERSION tarballs ..." do_or_die "tar -zcvf shorewall-docs-html-$VERSION.tgz shorewall-docs-html-$VERSION >> $LOGFILE 2>&1" + do_or_die "tar -jcvf shorewall-docs-html-$VERSION.tar.bz2 shorewall-docs-html-$VERSION >> $LOGFILE 2>&1" + + for htmlball in shorewall-docs-html-$VERSION.t*; do + do_or_die "sha1sum $htmlball >> $VERSION.sha1sums" + do_or_die "md5sum $htmlball >> $VERSION.md5sums" + done fi fi @@ -415,7 +434,13 @@ fi progress_message "Creating $DIR/shorewall-${VERSION}.tgz ..." do_or_die "tar -zcvf shorewall-${VERSION}.tgz shorewall-$VERSION >> $LOGFILE 2>&1" - ;; + do_or_die "tar -jcvf shorewall-$VERSION.tar.bz2 shorewall-$VERSION >> $LOGFILE 2>&1" + for betaball in shorewall-$VERSION.t*; do + do_or_die "sha1sum $betaball >> $VERSION.sha1sums" + do_or_die "md5sum $betaball >> $VERSION.md5sums" + done + +;; esac if [ -n "$BUILDLRP" ]; then diff --git a/tools/build/publish b/tools/build/publish index b00c4cd52..f4c4cabf5 100644 --- a/tools/build/publish +++ b/tools/build/publish @@ -66,11 +66,10 @@ while [ $# -gt 0 ]; do case $1 in *.xml) b=${1%.*} - - # - # The original HTML documents were created using MS FrontPage and used - # the .htm suffix. The remainder use the .html suffix. - # + # + # The original HTML documents were created using MS FrontPage and + # used the .htm suffix. The remainder use the .html suffix. + # if list_search $b.htm $HTMFILES ; then b=$b.htm f="$WEBSITE/$b"