]> Dogcows Code - chaz/tint2/blobdiff - make_release.sh
*add* adding a dummy configure file which reports for the user that we've changed...
[chaz/tint2] / make_release.sh
diff --git a/make_release.sh b/make_release.sh
new file mode 100755 (executable)
index 0000000..98e45e4
--- /dev/null
@@ -0,0 +1,23 @@
+#!/bin/bash
+
+# usage: ./make_release.sh RELEASE_VERSION_NUMBER
+
+if [[ $# -ne 1 ]]; then
+  echo "usage: $0 RELEASE_VERSION_NUMBER"
+  exit
+fi
+
+DIR=tint2-${1}
+echo "Making release ${DIR}"
+rm -Rf ${DIR}
+svn export . ${DIR} > /dev/null
+
+# delete unneeded files
+rm -f ${DIR}/configure ${DIR}/make_release.sh
+
+# replace get_svnrev.sh by a simple echo command
+echo "echo \"#define VERSION_STRING \\\"${1}\\\"\" > version.h" > ${DIR}/get_svnrev.sh
+
+# create tarball and remove the exported directory
+tar -cjf ${DIR}.tar.bz2 ${DIR}
+rm -Rf ${DIR}
This page took 0.020121 seconds and 4 git commands to generate.