[MPlayer-cvslog] r18794 - trunk/version.sh
diego
subversion at mplayerhq.hu
Fri Jun 23 17:12:56 CEST 2006
Author: diego
Date: Fri Jun 23 17:12:56 2006
New Revision: 18794
Modified:
trunk/version.sh
Log:
Produce correct version string even when not run in a Subversion working copy.
ported from FFmpeg
Modified: trunk/version.sh
==============================================================================
--- trunk/version.sh (original)
+++ trunk/version.sh Fri Jun 23 17:12:56 2006
@@ -2,7 +2,9 @@
test "$1" && extra="-$1"
-svn_revision=`svn info | grep Revision | cut -d' ' -f2 || echo UNKNOWN`
+svn_revision=`svn info 2> /dev/null | grep Revision | cut -d' ' -f2`
+test $svn_revision || svn_revision=UNKNOWN
+
NEW_REVISION="#define VERSION \"dev-SVN-r${svn_revision}${extra}\""
OLD_REVISION=`cat version.h 2> /dev/null`
More information about the MPlayer-cvslog
mailing list