[MPlayer-cvslog] r29140 - trunk/version.sh

cehoyos subversion at mplayerhq.hu
Sat Apr 4 21:50:58 CEST 2009


Author: cehoyos
Date: Sat Apr  4 21:50:57 2009
New Revision: 29140

Log:
Fix version.sh which has not worked for at least months.

Modified:
   trunk/version.sh

Modified: trunk/version.sh
==============================================================================
--- trunk/version.sh	Sat Apr  4 16:25:47 2009	(r29139)
+++ trunk/version.sh	Sat Apr  4 21:50:57 2009	(r29140)
@@ -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


More information about the MPlayer-cvslog mailing list