# HG changeset patch # User diego # Date 1157498362 0 # Node ID 0b07e95ca08276fbda87e4ef7be5a3d2ce4f16aa # Parent 782364fc00c46a1b51164a042236adef5b389933 FFmpeg sync: Fall back on grep if svn client is not installed. diff -r 782364fc00c4 -r 0b07e95ca082 version.sh --- 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}\""