1
mirror of https://github.com/mpv-player/mpv synced 2024-11-07 01:47:00 +01:00
mpv/version.sh
ivo fb02e87565 avoid usage of head -1/head -n 1 and use sed 1q instead
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18625 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-06-07 15:03:25 +00:00

11 lines
209 B
Bash
Executable File

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