Browse code

10l: Ignore error output from failed attempt to read snapshot_version.

Originally committed as revision 17578 to svn://svn.ffmpeg.org/ffmpeg/trunk

Diego Biurrun authored on 2009/02/25 08:10:36
Showing 1 changed files
... ...
@@ -1,7 +1,7 @@
1 1
 #!/bin/sh
2 2
 
3 3
 # check for SVN revision number
4
-revision=$(cat snapshot_version)
4
+revision=$(cat snapshot_version 2> /dev/null)
5 5
 test $revision || revision=$(cd "$1" && LC_ALL=C svn info 2> /dev/null | grep Revision | cut -d' ' -f2)
6 6
 test $revision || revision=$(cd "$1" && grep revision .svn/entries 2>/dev/null | cut -d '"' -f2)
7 7
 test $revision || revision=$(cd "$1" && sed -n -e '/^dir$/{n;p;q}' .svn/entries 2>/dev/null)