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

diego subversion at mplayerhq.hu
Wed Sep 6 01:19:22 CEST 2006


Author: diego
Date: Wed Sep  6 01:19:22 2006
New Revision: 19702

Modified:
   trunk/version.sh

Log:
FFmpeg sync: Fall back on grep if svn client is not installed.


Modified: trunk/version.sh
==============================================================================
--- trunk/version.sh	(original)
+++ trunk/version.sh	Wed Sep  6 01:19:22 2006
@@ -3,6 +3,8 @@
 test "$1" && extra="-$1"
 
 svn_revision=`LC_ALL=C svn info 2> /dev/null | grep Revision | cut -d' ' -f2`
+test $svn_revision || svn_revision=`cd "$1" && grep revision .svn/entries | \
+                                    cut -d '"' -f2 2> /dev/null`
 test $svn_revision || svn_revision=UNKNOWN
 
 NEW_REVISION="#define VERSION \"dev-SVN-r${svn_revision}${extra}\""



More information about the MPlayer-cvslog mailing list