]> Dogcows Code - chaz/tint2/commitdiff
*add* adding a dummy configure file which reports for the user that we've changed...
authorAndreas Fink <andreas.fink85@googlemail.com>
Sun, 13 Jun 2010 09:51:52 +0000 (09:51 +0000)
committerAndreas Fink <andreas.fink85@googlemail.com>
Sun, 13 Jun 2010 09:51:52 +0000 (09:51 +0000)
*add* make_relase.sh convenience script which creates a tarball for release (usage: ./make_release.sh RELEASE_VERSION)
*fix* get_svnrev.sh fixed is the fallback version is produced

configure [new file with mode: 0755]
get_svnrev.sh
make_release.sh [new file with mode: 0755]

diff --git a/configure b/configure
new file mode 100755 (executable)
index 0000000..5561cd7
--- /dev/null
+++ b/configure
@@ -0,0 +1,8 @@
+#!/bin/bash
+
+# This file should be removed for a release, but right now it is here for convenience.
+# Everyone who is used to build tint2 with ./configure && make && sudo make install will get this message
+
+echo "Tint2 has changed the build system to CMake"
+echo "See INSTALL or the wiki page for further building instructions"
+
index c6466ab06ab9860a11ad5eeb8a2912b6eb7e5928..b537a60ce03e08692114520e1ba17804763ff2c1 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/bash
 
-FALLBACK="0.10-svn"
+FALLBACK=\"0.10-svn\"
 
 if [[ $# -eq 0 ]]; then
   DIR=.
@@ -22,7 +22,7 @@ fi
 
 if [[ ${REV_OLD} != ${REV} ]]; then
   echo "Building new version.h"
-  echo "#define VERSION_STRING "${REV}"" > version.h
+  echo "#define VERSION_STRING ${REV}" > version.h
 fi
 
 
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.027503 seconds and 4 git commands to generate.