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
This commit is contained in:
Leif Middelschulte 2013-01-15 15:57:58 +00:00
parent ac0ff4c997
commit 31bd3af105
1 changed files with 1 additions and 1 deletions

View File

@ -2,7 +2,7 @@ m4_define([v_maj], [1])
m4_define([v_min], [7])
m4_define([v_mic], [99])
m4_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']))
m4_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']))
m4_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']))])
#### FIXME: i am sure that we can do some m4 to automagically do the stuff below for release and snapshots