summaryrefslogtreecommitdiff
path: root/version.sh
diff options
context:
space:
mode:
authorMåns Rullgård <mans@mansr.com>2007-06-18 19:35:19 +0000
committerMåns Rullgård <mans@mansr.com>2007-06-18 19:35:19 +0000
commitc1047cda84c93ebd8e46bb1d98d565e7407468c6 (patch)
treed94f8913a4fdf8564c0e10c001c27770852cc8a7 /version.sh
parent4d321bff85cf1e9b6a18b915af185494b5ea94b6 (diff)
downloadffmpeg-c1047cda84c93ebd8e46bb1d98d565e7407468c6.tar.gz
extract revision from svn-1.4 .svn/entries files
Originally committed as revision 9362 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'version.sh')
-rwxr-xr-xversion.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/version.sh b/version.sh
index c04822f467..e6190a82b5 100755
--- a/version.sh
+++ b/version.sh
@@ -3,6 +3,7 @@
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=`cd "$1" && sed -n '/^dir$/{n;p;q}' < .svn/entries`
test $svn_revision || svn_revision=UNKNOWN
NEW_REVISION="#define FFMPEG_VERSION \"SVN-r$svn_revision\""