From: f8cfe@free.fr Date: Wed, 25 May 2011 19:10:55 +0000 (+0200) Subject: setlocalversion: fix svn revision l10n-ism X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=cff599de0816704be966c5f9da36bfab14d9dcaa;p=buildroot.git setlocalversion: fix svn revision l10n-ism Fixed an l10n-ism in retrieval of the svn revision. Signed-off-by: Stephane Fillod Signed-off-by: Peter Korsgaard --- diff --git a/scripts/setlocalversion b/scripts/setlocalversion index cc2c128f0a..8d6fe909f9 100755 --- a/scripts/setlocalversion +++ b/scripts/setlocalversion @@ -56,9 +56,9 @@ if hgid=`hg id 2>/dev/null`; then fi # Check for svn and a svn repo. -if rev=`svn info 2>/dev/null | grep '^Last Changed Rev'`; then +if rev=`LANG=C svn info 2>/dev/null | grep '^Last Changed Rev'`; then rev=`echo $rev | awk '{print $NF}'` - changes=`svn status 2>/dev/null | grep '^[AMD]' | wc -l` + changes=`LANG=C svn status 2>/dev/null | grep '^[AMD]' | wc -l` # Are there uncommitted changes? if [ $changes != 0 ]; then