diff options
author | Måns Rullgård <mans@mansr.com> | 2007-06-18 19:35:19 +0000 |
---|---|---|
committer | Måns Rullgård <mans@mansr.com> | 2007-06-18 19:35:19 +0000 |
commit | c1047cda84c93ebd8e46bb1d98d565e7407468c6 (patch) | |
tree | d94f8913a4fdf8564c0e10c001c27770852cc8a7 /version.sh | |
parent | 4d321bff85cf1e9b6a18b915af185494b5ea94b6 (diff) | |
download | ffmpeg-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-x | version.sh | 1 |
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\"" |