diff options
author | Måns Rullgård <mans@mansr.com> | 2009-08-16 15:51:47 +0000 |
---|---|---|
committer | Måns Rullgård <mans@mansr.com> | 2009-08-16 15:51:47 +0000 |
commit | 7f6d9b30890161d40b4bf8917f5cff7517029423 (patch) | |
tree | 58643ae964493c42004a393766cadced489b35fe | |
parent | 9b734d44abaee81ec2ba57164c8faa3857abb368 (diff) | |
download | ffmpeg-7f6d9b30890161d40b4bf8917f5cff7517029423.tar.gz |
version.sh: use standard sed syntax
Originally committed as revision 19655 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rwxr-xr-x | version.sh | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/version.sh b/version.sh index 9809d6d14e..250caef007 100755 --- a/version.sh +++ b/version.sh @@ -4,7 +4,10 @@ revision=$(cat snapshot_version 2> /dev/null) test $revision || revision=$(cd "$1" && LC_ALL=C svn info 2> /dev/null | grep Revision | cut -d' ' -f2) test $revision || revision=$(cd "$1" && grep revision .svn/entries 2>/dev/null | cut -d '"' -f2) -test $revision || revision=$(cd "$1" && sed -n -e '/^dir$/{n;p;q}' .svn/entries 2>/dev/null) +test $revision || revision=$(cd "$1" && sed -n -e '/^dir$/{n +p +q +}' .svn/entries 2>/dev/null) test $revision && revision=SVN-r$revision # check for git short hash |