hu/ports.xml & man/hu/mplayer.1 synced with r19175
[mplayer/glamo.git] / version.sh
blob74400c2f94f76504fa01746b52484757b8c3550f
1 #!/bin/sh
3 test "$1" && extra="-$1"
5 svn_revision=`svn info 2> /dev/null | grep Revision | cut -d' ' -f2`
6 test $svn_revision || svn_revision=UNKNOWN
8 NEW_REVISION="#define VERSION \"dev-SVN-r${svn_revision}${extra}\""
9 OLD_REVISION=`cat version.h 2> /dev/null`
11 # Update version.h only on revision changes to avoid spurious rebuilds
12 if test "$NEW_REVISION" != "$OLD_REVISION"; then
13 echo "$NEW_REVISION" > version.h