aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichel Bardiaux <mbardiaux@peaktime.be>2006-09-05 23:15:50 +0000
committerDiego Biurrun <diego@biurrun.de>2006-09-05 23:15:50 +0000
commit837f0ad7aac63c8a00a8cd78617dabfdf9061ac7 (patch)
treebda6e0d1ec53e3837656f7b16acc3af5ceccb088
parentafd1a2d88e67b5960e8319a6b9fddc4188582604 (diff)
downloadffmpeg-837f0ad7aac63c8a00a8cd78617dabfdf9061ac7.tar.gz
Fall back on grepping for the revision number if no svn client is installed.
patch by Michel Bardiaux, mbardiaux mediaxim be Originally committed as revision 6179 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rwxr-xr-xversion.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/version.sh b/version.sh
index dff7ea3300..c04822f467 100755
--- a/version.sh
+++ b/version.sh
@@ -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\""