patch from seablade for fetching the svn revision
authorPaul Davis <paul@linuxaudiosystems.com>
Sat, 16 Jun 2012 02:18:16 +0000 (02:18 +0000)
committerPaul Davis <paul@linuxaudiosystems.com>
Sat, 16 Jun 2012 02:18:16 +0000 (02:18 +0000)
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@12734 d708f5d6-7413-0410-9779-e7cbd77b26cf

SConstruct

index fdd4af3394e20a32de160f0d09512636e387938a..1efce5150e317e310006978aa38d2d424c193979 100644 (file)
@@ -268,7 +268,7 @@ def fetch_svn_revision (path):
     cmd = "LANG= "
     cmd += "svn info "
     cmd += path
-    cmd += " | awk '/^Revision:/ { print $2}'"
+    cmd += " 2>/dev/null | awk '/^Revision:/ { print $2}'"
     return commands.getoutput (cmd)
 
 def create_stored_revision (target = None, source = None, env = None):
@@ -342,7 +342,7 @@ env.Append (BUILDERS = {'VersionBuild' : version_bld})
 #
 
 def versioned_builder(target,source,env):
-    w, r = os.popen2( "LANG= svn info | awk '/^Revision:/ { print $2}'")
+    w, r = os.popen2( "LANG= svn info 2>/dev/null | awk '/^Revision:/ { print $2}'")
     
     last_revision = r.readline().strip()
     w.close()