# HG changeset patch # User cehoyos # Date 1238874657 0 # Node ID 1bdda4f68f5ffba7a2c4f7d0cc35918cc8ceffb6 # Parent 3e1105ae9cb1e465b2a0bb07b5316b8f8bcbc058 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. diff -r 3e1105ae9cb1 -r 1bdda4f68f5f version.sh --- 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