summaryrefslogtreecommitdiff
path: root/tools/release
blob: 21817c4259609736255a582b78f6bbe993a7ec6f (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
#!/bin/sh

set -e

# clean
make clean
make update-po
make clean

if [ -n "`svn st`" ] ; then
    echo "uncommited changes !!!"
    exit 1
fi

# 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 Menuorg $VERSION" svn+e-tobi://e-tobi.net/menuorg/trunk \
#  "svn+e-tobi://e-tobi.net/menuorg/tags/$VERSION"