[DVDnav-discuss] [PATCH] Suppress error messages creating version.h from non-SVN checkout
Dan Nicholson
dbn.lists at gmail.com
Mon Apr 28 23:53:39 CEST 2008
---
version.sh | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/version.sh b/version.sh
index be67dcd..6ef2323 100755
--- a/version.sh
+++ b/version.sh
@@ -1,8 +1,9 @@
#!/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`
+svn_revision=`cd "$1" && LC_ALL=C svn info 2> /dev/null | \
+ grep Revision 2> /dev/null | cut -d' ' -f2`
+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
NEW_REVISION="#define VERSION \"SVN-r$svn_revision\""
--
1.5.3.2
More information about the DVDnav-discuss
mailing list