summaryrefslogtreecommitdiff
path: root/prepare-release.sh
diff options
context:
space:
mode:
authorNick White <git@njw.me.uk>2010-05-19 17:15:41 +0100
committerNick White <git@njw.me.uk>2010-05-19 17:15:41 +0100
commite91ec0d87aa31cb465fe8cf934d405ad56342eba (patch)
tree1709e437c0d8f144bec479975a777c6ae8580eba /prepare-release.sh
parent6cf58b46037cf04915fa507813ab7419db2e45ec (diff)
Switched to simpler build system, and fixed bugs
Now there's a proper build system in place, which is actually simple enough to understand. I also fixed plenty of warnings about the code (reminding me how badly I knew C when I wrote this). Hinduism today aren't indexing their new issues using the index file I was sourcing any more, so I don't expect to fix any more bugs or improve this much.
Diffstat (limited to 'prepare-release.sh')
-rwxr-xr-xprepare-release.sh64
1 files changed, 0 insertions, 64 deletions
diff --git a/prepare-release.sh b/prepare-release.sh
deleted file mode 100755
index 23d4cab..0000000
--- a/prepare-release.sh
+++ /dev/null
@@ -1,64 +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=$(grep AC_INIT configure.ac | \
- awk -F \[ '{print $3}' | awk -F \] '{print $1}')
-
-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 -rf .git* */.git*
-rm "$0"
-
-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 > getht-$VERSION.tar.bz2.sha1
-
-echo "Packaging of GetHT $VERSION complete."
-echo "The tarball resides at ./getht-$VERSION.tar.bz2"