aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Bennett <steveb@workware.net.au>2010-10-29 14:26:35 +1000
committerSteve Bennett <steveb@workware.net.au>2010-10-30 10:46:44 +1000
commit84192e2a380a09ea3f5098a01b2dbe2e6fbd9335 (patch)
tree362f1485230828b92d550bc4718d35ee6dc9725c
parent643a605d6f887aab459a8f2bc0716f7b347bb34c (diff)
downloadjimtcl-84192e2a380a09ea3f5098a01b2dbe2e6fbd9335.zip
jimtcl-84192e2a380a09ea3f5098a01b2dbe2e6fbd9335.tar.gz
jimtcl-84192e2a380a09ea3f5098a01b2dbe2e6fbd9335.tar.bz2
Make it easy to create release tarballs
Signed-off-by: Steve Bennett <steveb@workware.net.au>
-rwxr-xr-xmake-release.sh19
1 files changed, 19 insertions, 0 deletions
diff --git a/make-release.sh b/make-release.sh
new file mode 100755
index 0000000..8f1515f
--- /dev/null
+++ b/make-release.sh
@@ -0,0 +1,19 @@
+#!/bin/sh
+
+version=`sed -n -e 's/AC_INIT[^0]*\([^]]*\).*/\1/p' configure.ac`
+
+if [ `git clean -nqx | wc -l` -ne 0 ]; then
+ git clean -nqx
+ echo "***: Tree not clean"
+ exit 1
+fi
+if [ `git status | grep modified: | wc -l` -ne 0 ]; then
+ git status
+ echo "***: Modified files exist"
+ exit 1
+fi
+mkdir jimtcl-$version
+rsync --exclude=.git --exclude=jimtcl-$version -a ./ jimtcl-$version/
+tar -czf jimtcl-$version.tar.gz jimtcl-$version
+rm -rf jimtcl-$version
+ls -l jimtcl-$version.tar.gz