0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-20 12:02:23 +02:00
mpv/version.sh
diego f854d9407e Drop all system-specific version generation stuff.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18595 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-06-06 12:00:07 +00:00

10 lines
228 B
Bash
Executable File

#!/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