diff options
author | Måns Rullgård <mans@mansr.com> | 2007-06-18 19:43:11 +0000 |
---|---|---|
committer | Måns Rullgård <mans@mansr.com> | 2007-06-18 19:43:11 +0000 |
commit | 7a68f7fa22861be70e983db01dad9960a762031a (patch) | |
tree | 9d985193df0389c038f7e580635348b4c10091bd /version.sh | |
parent | c1047cda84c93ebd8e46bb1d98d565e7407468c6 (diff) | |
download | ffmpeg-7a68f7fa22861be70e983db01dad9960a762031a.tar.gz |
kill error messages from failed svn revision extraction commands
Originally committed as revision 9363 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'version.sh')
-rwxr-xr-x | version.sh | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/version.sh b/version.sh index e6190a82b5..e4abf7200d 100755 --- a/version.sh +++ b/version.sh @@ -1,9 +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=`cd "$1" && sed -n '/^dir$/{n;p;q}' < .svn/entries` +test $svn_revision || svn_revision=`cd "$1" && grep revision .svn/entries 2>/dev/null | cut -d '"' -f2` +test $svn_revision || svn_revision=`cd "$1" && sed -n -e '/^dir$/{n;p;q}' .svn/entries 2>/dev/null` test $svn_revision || svn_revision=UNKNOWN NEW_REVISION="#define FFMPEG_VERSION \"SVN-r$svn_revision\"" |