0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-20 12:02:23 +02:00
mpv/version.sh

11 lines
209 B
Bash
Raw Normal View History

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