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

    last_cvs_update=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-${last_cvs_update}${extra}\"" >version.h