changeset 19696:0b07e95ca082

FFmpeg sync: Fall back on grep if svn client is not installed.
author diego
date Tue, 05 Sep 2006 23:19:22 +0000
parents 782364fc00c4
children dd5422a0a9a2
files version.sh
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/version.sh	Tue Sep 05 21:53:09 2006 +0000
+++ b/version.sh	Tue Sep 05 23:19:22 2006 +0000
@@ -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}\""