summaryrefslogtreecommitdiff
path: root/wscript
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2013-01-07 19:14:46 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2013-01-07 19:14:46 +0000
commita52deb13e782827a9456d91d7a2c1a46b92a2163 (patch)
treeb93d70a5f9ed23a8d87f4dccc450b41ed148e7dd /wscript
parent33d071468f4007e52c6943fa0ca80bc1988e5fff (diff)
fix i18n-caused error in determining svn revision (shoudl fix #5256)
git-svn-id: svn://localhost/ardour2/branches/3.0@13798 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'wscript')
-rw-r--r--wscript3
1 files changed, 2 insertions, 1 deletions
diff --git a/wscript b/wscript
index 43fb74fb70..78f9e288de 100644
--- a/wscript
+++ b/wscript
@@ -58,7 +58,8 @@ else:
# Version stuff
def fetch_svn_revision (path):
- cmd = "LANG= svn info " + path + " | awk '/^Revision:/ { print $2}'"
+ # the fifth line has the revision number. we can't grep because of i18n issues changing the string
+ cmd = "svn info " + path + " | sed -n '5s/^[^:]*:[ \t][ \t]*//p'"
return subprocess.Popen(cmd, shell=True, stderr=subprocess.STDOUT, stdout=subprocess.PIPE).communicate()[0].splitlines()
def fetch_gcc_version (CC):