From a52deb13e782827a9456d91d7a2c1a46b92a2163 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Mon, 7 Jan 2013 19:14:46 +0000 Subject: [PATCH] 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 --- wscript | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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):