Add release creation script1.0
authorThomas Perl <thp@thpinfo.com>
Fri, 30 Jul 2010 16:19:09 +0000 (30 18:19 +0200)
committerThomas Perl <thp@thpinfo.com>
Fri, 30 Jul 2010 16:19:09 +0000 (30 18:19 +0200)
make-release.sh [new file with mode: 0644]

diff --git a/make-release.sh b/make-release.sh
new file mode 100644 (file)
index 0000000..743889b
--- /dev/null
@@ -0,0 +1,24 @@
+#!/bin/bash
+# Generic script for creating a source tarball
+# Released into the public domain.
+# Thomas Perl <thpinfo.com/about>; 2010-07-30
+
+NAME=bwmon
+VERSION=`python -c 'import bwmon; print bwmon.__version__'`
+SOURCES=*
+
+###
+
+RELEASE=${NAME}-${VERSION}
+TMPDIR=`mktemp -d`
+
+###
+
+mkdir -p ${TMPDIR}/${RELEASE}/
+cp -rpv ${SOURCES} ${TMPDIR}/${RELEASE}/
+tar czvf ${RELEASE}.tar.gz -C ${TMPDIR} ${RELEASE}
+rm -rf ${TMPDIR}
+
+echo ""
+echo "--> " ${RELEASE}.tar.gz
+