From ccbbe046f0efb2c9a63e78d307f2c1b96c1c3e64 Mon Sep 17 00:00:00 2001 From: etobi Date: Tue, 3 Nov 2009 22:04:11 +0100 Subject: added tools --- tools/release | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100755 tools/release (limited to 'tools/release') diff --git a/tools/release b/tools/release new file mode 100755 index 0000000..179525a --- /dev/null +++ b/tools/release @@ -0,0 +1,33 @@ +#!/bin/sh + +set -e + +# clean +make clean + +if [ -n "`svn st`" ] ; then + echo "uncommited changes !!!" + exit 1 +fi + +CXXFLAGS="-O0 -fPIC -ggdb -Wall -Woverloaded-virtual" + +# compile and run test +make CXXFLAGS="$CXXFLAGS" -s runtests + +# compile production code +make CXXFLAGS="$CXXFLAGS" -s LIBDIR=. VDRDIR=/usr/include/vdr LOCALEDIR=/tmp/locales all + +# clean +make clean + +# make distribution tarball +make dist + +# read version +VERSION=`grep 'static const char VERSION\[\] =' src/Version.h | awk '{ print $6 }' | sed -e 's/[";]//g'` + +# tag version +echo "Tagging: $VERSION" +svn cp -m "Releasing Vodcatcher $VERSION" svn+e-tobi://e-tobi.net/vodcatcher/trunk \ + "svn+e-tobi://e-tobi.net/vodcatcher/tags/$VERSION" -- cgit v1.2.3