quickrelease: A dumb script for making source-only tarballs
authorTony Finch <dot@dotat.at>
Thu, 7 Nov 2013 16:25:51 +0000 (16:25 +0000)
committerTony Finch <dot@dotat.at>
Thu, 7 Nov 2013 16:25:51 +0000 (16:25 +0000)
release-process/scripts/quickrelease [new file with mode: 0755]

diff --git a/release-process/scripts/quickrelease b/release-process/scripts/quickrelease
new file mode 100755 (executable)
index 0000000..dd16fa0
--- /dev/null
@@ -0,0 +1,30 @@
+#!/bin/sh
+#
+# A really dumb script for making a quick tarball of Exim
+
+set -e
+
+OWD=$(pwd -P)
+
+GWD=$(git rev-parse --git-dir)
+
+TWD=$(mktemp -d -t exim) || exit 1
+echo $TWD
+cd $TWD
+
+git clone $GWD
+
+cd exim/src/src
+../scripts/reversion
+. version.sh
+EXIM=exim-${EXIM_RELEASE_VERSION}${EXIM_VARIANT_VERSION}
+
+cd ../..
+mv src $EXIM
+tar cfz $EXIM.tar.gz $EXIM
+mv $EXIM src
+
+cd $OWD
+mv $TWD/exim/$EXIM.tar.gz .
+rm -rf $EXIM
+echo $EXIM.tar.gz