summaryrefslogtreecommitdiff
path: root/tools/release
blob: 179525a00666a1bb073a142932863f39c80e9b05 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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"