[DVDnav-discuss] r1022 - trunk/libdvdnav/version.sh
nicodvb
subversion at mplayerhq.hu
Thu May 1 11:16:24 CEST 2008
Author: nicodvb
Date: Thu May 1 11:16:24 2008
New Revision: 1022
Log:
silence error message when building a non-checkout copy
(grep on a non-existing .svn file).
Patch by Dan Nicholson: dbn.lists gmail com
Modified:
trunk/libdvdnav/version.sh
Modified: trunk/libdvdnav/version.sh
==============================================================================
--- trunk/libdvdnav/version.sh (original)
+++ trunk/libdvdnav/version.sh Thu May 1 11:16:24 2008
@@ -1,7 +1,7 @@
#!/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 | \
+test $svn_revision || svn_revision=`cd "$1" && grep revision .svn/entries 2>/dev/null | \
cut -d '"' -f2 2> /dev/null`
test $svn_revision || svn_revision=UNKNOWN
More information about the DVDnav-discuss
mailing list