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