mirror of https://github.com/mpv-player/mpv
simplify
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18762 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
ffd83d3e2a
commit
2db0251591
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue