summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--doc/RELEASING32
-rwxr-xr-xprepare-package.sh14
-rwxr-xr-xprepare-release.sh63
3 files changed, 102 insertions, 7 deletions
diff --git a/doc/RELEASING b/doc/RELEASING
new file mode 100644
index 0000000..d6d008f
--- /dev/null
+++ b/doc/RELEASING
@@ -0,0 +1,32 @@
+== PROCEDURE FOR MAKING A NEW RELEASE ==
+
+- Source Tarball -
+1. Create a clean tarball, and sign & checksum it
+ ./prepare-package.sh
+2. Upload tarball & related files
+ scp getht-*.tar.bz2* <user>@dl.sv.nongnu.org:/releases/getht/
+
+- Webpage -
+1. Download current webpage
+ wget http://www.nongnu.org/getht/
+2. Add new version information
+3. Upload updated webpace
+ scp index.html <user>@dl.sv.nongnu.org:/releases/getht/
+
+- Infrastructure -
+1. Add to new version option to bug tracker
+ https://savannah.nongnu.org/bugs/admin/field_values.php?group_id=9005&list_value=1&field=release_id
+
+- Announcement -
+1. Post news to mailing list
+ getht-general@nongnu
+2. Post news to Savannah
+ https://savannah.nongnu.org/news/submit.php?group=getht
+3. Post new version to the following directories:
+ Freshmeat: http://freshmeat.net/add-release/64475/
+ IceWalkers: http://www.icewalkers.com/submit.php
+ SourceWell: http://sourcewell.berlios.de/updapp.php?id=3655
+
+- Clean up -
+1. Delete local copy of release files
+ rm index.html getht-*.tar.bz2*
diff --git a/prepare-package.sh b/prepare-package.sh
index 141d5df..8832ed2 100755
--- a/prepare-package.sh
+++ b/prepare-package.sh
@@ -27,15 +27,9 @@ echo Packaging GetHT version $VERSION
echo Copying sources to a temporary directory
rm -rf $TMPDIR/getht-$VERSION && \
-mkdir $TMPDIR/getht-$VERSION && \
-cp -R * $TMPDIR/getht-$VERSION && \
+git clone . $TMPDIR/getht-version && \
cd $TMPDIR/getht-$VERSION
-echo Removing Arch metadata
-rm -rf \{arch\}
-rm -rf .arch_ids
-rm -f ++log.getht*
-
# ensure version number in configure.ac is set correctly
sed -i "s|^AC_INIT(getht, .*)$|AC_INIT(getht, $VERSION)|" configure.ac
@@ -59,5 +53,11 @@ rm -rf getht-$VERSION
cd $ORIGDIR
mv $TMPDIR/getht-$VERSION.tar.bz2 .
+echo Signing package
+gpg -b getht-$VERSION.tar.bz2
+
+echo Checksumming package
+sha1sum getht-$VERSION.tar.bz2
+
echo "Packaging of GetHT $VERSION complete."
echo "The tarball resides at ./getht-$VERSION.tar.bz2"
diff --git a/prepare-release.sh b/prepare-release.sh
new file mode 100755
index 0000000..8832ed2
--- /dev/null
+++ b/prepare-release.sh
@@ -0,0 +1,63 @@
+#!/bin/bash
+#
+# Copyright 2006,2008 Nick White
+#
+# This file is part of GetHT.
+#
+# GetHT is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# GetHT 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 GetHT. If not, see <http://www.gnu.org/licenses/>.
+
+TMPDIR="/tmp"
+ORIGDIR=$(pwd)
+
+VERSION=$(gawk -F \" '{print $2}' src/version.h | \
+ sed -e ':a;N;$!ba;s/\n//g')
+
+echo Packaging GetHT version $VERSION
+
+echo Copying sources to a temporary directory
+rm -rf $TMPDIR/getht-$VERSION && \
+git clone . $TMPDIR/getht-version && \
+cd $TMPDIR/getht-$VERSION
+
+# ensure version number in configure.ac is set correctly
+sed -i "s|^AC_INIT(getht, .*)$|AC_INIT(getht, $VERSION)|" configure.ac
+
+echo Building necessary autotools parts
+autoreconf -i
+
+echo Cleaning make environment
+make clean
+
+echo Cleaning up working directory
+rm -rf autom4te.cache
+rm prepare-package.sh
+
+echo Packaging into a tarball
+cd ..
+tar -cjf getht-$VERSION.tar.bz2 getht-$VERSION
+
+echo Removing temporary directory
+rm -rf getht-$VERSION
+
+cd $ORIGDIR
+mv $TMPDIR/getht-$VERSION.tar.bz2 .
+
+echo Signing package
+gpg -b getht-$VERSION.tar.bz2
+
+echo Checksumming package
+sha1sum getht-$VERSION.tar.bz2
+
+echo "Packaging of GetHT $VERSION complete."
+echo "The tarball resides at ./getht-$VERSION.tar.bz2"