diff options
author | cehoyos <cehoyos@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2009-04-04 19:50:57 +0000 |
---|---|---|
committer | cehoyos <cehoyos@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2009-04-04 19:50:57 +0000 |
commit | 133807ced37dd97a296ce1852738d5a2b91de329 (patch) | |
tree | 55bead3b855d8fbe8fd4cfa0391635473be99c4f | |
parent | 389853416f01d42fda2ed754d34b5533790fcbfb (diff) | |
download | mpv-133807ced37dd97a296ce1852738d5a2b91de329.tar.bz2 mpv-133807ced37dd97a296ce1852738d5a2b91de329.tar.xz |
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
-rwxr-xr-x | version.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/version.sh b/version.sh index dee9bcfd66..dd8b7b4fe1 100755 --- a/version.sh +++ b/version.sh @@ -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 |