[Ffmpeg-cvslog] r6179 - trunk/version.sh

diego subversion
Wed Sep 6 01:15:50 CEST 2006


Author: diego
Date: Wed Sep  6 01:15:50 2006
New Revision: 6179

Modified:
   trunk/version.sh

Log:
Fall back on grepping for the revision number if no svn client is installed.
patch by Michel Bardiaux, mbardiaux mediaxim be


Modified: trunk/version.sh
==============================================================================
--- trunk/version.sh	(original)
+++ trunk/version.sh	Wed Sep  6 01:15:50 2006
@@ -1,6 +1,8 @@
 #!/bin/sh
 
 svn_revision=`cd "$1" && 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 FFMPEG_VERSION \"SVN-r$svn_revision\""




More information about the ffmpeg-cvslog mailing list