summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick White <git@njw.me.uk>2008-06-17 00:48:15 +0100
committerNick White <git@njw.me.uk>2008-06-17 00:48:15 +0100
commitfc286ecd4bdf6e00a39b22cfa9573ff896e480b6 (patch)
treebaa3410d3b3e0bd58ede939b9e406febcf5952a9
parent8e3dec79bac63482c48a625e802ce5beed4556f5 (diff)
Moved prepare package script, added version info to release proc
-rw-r--r--doc/RELEASING6
-rwxr-xr-xprepare-package.sh63
2 files changed, 6 insertions, 63 deletions
diff --git a/doc/RELEASING b/doc/RELEASING
index d6d008f..405884e 100644
--- a/doc/RELEASING
+++ b/doc/RELEASING
@@ -1,5 +1,11 @@
== PROCEDURE FOR MAKING A NEW RELEASE ==
+- Version Number -
+1. Set version number in source file
+ src/version.h
+2. Set version number in autoconf script
+ configure.ac : AC_INIT
+
- Source Tarball -
1. Create a clean tarball, and sign & checksum it
./prepare-package.sh
diff --git a/prepare-package.sh b/prepare-package.sh
deleted file mode 100755
index 8832ed2..0000000
--- a/prepare-package.sh
+++ /dev/null
@@ -1,63 +0,0 @@
-#!/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"