summaryrefslogtreecommitdiffstats
path: root/version.sh
blob: c16e23cf42d54af3bc8fb64838aca060caa2b805 (plain)
1
2
3
4
5
6
7
8
9
10
#!/bin/sh

revision=r`grep committed-rev .svn/entries | head -n 1 | cut -d '"' -f 2 2>/dev/null`

extra=""
if test "$1" ; then
  extra="-$1"
fi

echo "#define VERSION \"dev-SVN-${revision}${extra}\"" > version.h