[ardour-dev] [PATCH]Another scons issue
Alexis Deruelle
alexis.deruelle at cegetel.net
Tue Dec 19 08:33:38 PST 2006
Hi,
For anyone using a internationalized version of svn (as I do :-) the function
fetch_svn_revision won't return anything as the grep looks for the english
word 'Revision:' that turns into 'Révision :' with LANG=fr_FR.UTF-8. I
suppose it's the case for many other languages.
Below is a possible solution that empties the LANG= variable within the svn
command line.
Cheers,
--
Alexis
Index: SConstruct
===================================================================
--- SConstruct (révision 1224)
+++ SConstruct (copie de travail)
@@ -234,7 +234,8 @@
def fetch_svn_revision (path):
- cmd = "svn info "
+ cmd = "LANG= "
+ cmd += "svn info "
cmd += path
cmd += " | awk '/^Revision:/ { print $2}'"
return commands.getoutput (cmd)
More information about the Ardour-Dev
mailing list