changeset 29100:1bdda4f68f5f

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.
author cehoyos
date Sat, 04 Apr 2009 19:50:57 +0000
parents 3e1105ae9cb1
children 888e3b3af9f2
files version.sh
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/version.sh	Sat Apr 04 14:17:53 2009 +0000
+++ b/version.sh	Sat Apr 04 19:50:57 2009 +0000
@@ -16,7 +16,7 @@
 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