summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2012-06-16 02:18:16 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2012-06-16 02:18:16 +0000
commit5227874ca0f9f0d70d320ad68195428f6e69052c (patch)
tree032c11141e8d18a72c9a6cff46c434bac99be1cb /SConstruct
parentc2443fbd833c7170b542d4316ac4526199315b9a (diff)
patch from seablade for fetching the svn revision
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@12734 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct4
1 files changed, 2 insertions, 2 deletions
diff --git a/SConstruct b/SConstruct
index fdd4af3394..1efce5150e 100644
--- a/SConstruct
+++ b/SConstruct
@@ -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()