[FFmpeg-cvslog] r17578 - trunk/version.sh

diego subversion
Wed Feb 25 00:10:37 CET 2009


Author: diego
Date: Wed Feb 25 00:10:36 2009
New Revision: 17578

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

Modified:
   trunk/version.sh

Modified: trunk/version.sh
==============================================================================
--- trunk/version.sh	Wed Feb 25 00:04:52 2009	(r17577)
+++ trunk/version.sh	Wed Feb 25 00:10:36 2009	(r17578)
@@ -1,7 +1,7 @@
 #!/bin/sh
 
 # check for SVN revision number
-revision=$(cat snapshot_version)
+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)




More information about the ffmpeg-cvslog mailing list