From 133807ced37dd97a296ce1852738d5a2b91de329 Mon Sep 17 00:00:00 2001 From: cehoyos Date: Sat, 4 Apr 2009 19:50:57 +0000 Subject: 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 --- version.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3