summaryrefslogtreecommitdiffstats
path: root/version.sh
diff options
context:
space:
mode:
Diffstat (limited to 'version.sh')
-rwxr-xr-xversion.sh2
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