1
0
mirror of https://github.com/mpv-player/mpv synced 2025-02-19 22:36:55 +00:00

Avoid spurious rebuilds on svn up. The check to find out if the header file

changed compared two lines to one, which would result in false positive updates.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29140 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
cehoyos 2009-04-04 19:50:57 +00:00
parent 389853416f
commit 133807ced3

View File

@ -16,7 +16,7 @@ version=$(cat VERSION 2> /dev/null)
test $version || version=$svn_revision
NEW_REVISION="#define VERSION \"${version}${extra}\""
OLD_REVISION=$(cat version.h 2> /dev/null)
OLD_REVISION=$(head -n 1 version.h 2> /dev/null)
TITLE='#define MP_TITLE "%s "VERSION" (C) 2000-2009 MPlayer Team\n"'
# Update version.h only on revision changes to avoid spurious rebuilds