summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeif Middelschulte <leif.middelschulte@gmail.com>2013-01-15 15:57:58 +0000
committerLeif Middelschulte <leif.middelschulte@gmail.com>2013-01-15 15:57:58 +0000
commit31bd3af10535ed27b04205859dcc8dad1c1a1a7e (patch)
tree09f2098ba0efb75afabac5a664af2245c88b9311
parentac0ff4c9973bb94e45976bf05fffc814af0c46d3 (diff)
Prepend svnversion command with LC_ALL=C so the subsequent grep works with non-english locales too.
This patch was brought to you by: sed -i'' 's/svnversion/LC_ALL=C svnversion/' configure.ac Anybody who has the entire trunk and branches around is welcome to apply an analogue patches to it. SVN revision: 82822
-rw-r--r--configure.ac2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index a0f5607603..ff82e287e8 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2,7 +2,7 @@ m4_define([v_maj], [1])
2m4_define([v_min], [7]) 2m4_define([v_min], [7])
3m4_define([v_mic], [99]) 3m4_define([v_mic], [99])
4 4
5m4_define([v_rev], m4_esyscmd([(svnversion "${SVN_REPO_PATH:-.}" | grep -v '\(export\|Unversioned directory\)' || echo 0) | awk -F : '{printf("%s\n", $1);}' | tr -d ' :MSP\n'])) 5m4_define([v_rev], m4_esyscmd([(LC_ALL=C svnversion "${SVN_REPO_PATH:-.}" | grep -v '\(export\|Unversioned directory\)' || echo 0) | awk -F : '{printf("%s\n", $1);}' | tr -d ' :MSP\n']))
6m4_if(v_rev, [0], [m4_define([v_rev], m4_esyscmd([git log 2> /dev/null | (grep -m1 git-svn-id || echo 0) | sed -e 's/.*@\([0-9]*\).*/\1/' | tr -d '\n']))]) 6m4_if(v_rev, [0], [m4_define([v_rev], m4_esyscmd([git log 2> /dev/null | (grep -m1 git-svn-id || echo 0) | sed -e 's/.*@\([0-9]*\).*/\1/' | tr -d '\n']))])
7 7
8#### FIXME: i am sure that we can do some m4 to automagically do the stuff below for release and snapshots 8#### FIXME: i am sure that we can do some m4 to automagically do the stuff below for release and snapshots