From: Christophe Leroy Date: Fri, 22 Feb 2013 08:59:18 +0000 (+0100) Subject: kbuild: Unset language specific variables in setlocalversion script X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f893bfb61531548eeaff432e8d10758e86e788a7;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git kbuild: Unset language specific variables in setlocalversion script This patch allows the use of setlocalversion script regardless of the language parameters. Otherwise, the `svn info 2>/dev/null | grep '^Last Changed Rev'` returns nothing because for instance, in French the text 'Last Changed Rev' is replaced by 'Révision de la dernière modification' Signed-off-by: Christophe Leroy Signed-off-by: Michal Marek --- diff --git a/scripts/setlocalversion b/scripts/setlocalversion index bd6dca8a0ab2..84b88f109b80 100755 --- a/scripts/setlocalversion +++ b/scripts/setlocalversion @@ -108,7 +108,7 @@ scm_version() fi # Check for svn and a svn repo. - if rev=`svn info 2>/dev/null | grep '^Last Changed Rev'`; then + if rev=`LANG= LC_ALL= LC_MESSAGES=C svn info 2>/dev/null | grep '^Last Changed Rev'`; then rev=`echo $rev | awk '{print $NF}'` printf -- '-svn%s' "$rev"