git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18762 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
diego 2006-06-20 10:08:19 +00:00
parent ffd83d3e2a
commit 2db0251591
1 changed files with 2 additions and 5 deletions

View File

@ -1,10 +1,7 @@
#!/bin/sh #!/bin/sh
revision=r`grep committed-rev .svn/entries | sed 1q | cut -d '"' -f 2 2>/dev/null` revision=r`grep revision .svn/entries | cut -d '"' -f 2 2> /dev/null`
extra="" test "$1" && extra="-$1"
if test "$1" ; then
extra="-$1"
fi
echo "#define VERSION \"dev-SVN-${revision}${extra}\"" > version.h echo "#define VERSION \"dev-SVN-${revision}${extra}\"" > version.h