aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/setlocalversion
diff options
context:
space:
mode:
authorChristophe Leroy <christophe.leroy@c-s.fr>2013-02-22 03:59:18 -0500
committerMichal Marek <mmarek@suse.cz>2013-02-22 08:18:30 -0500
commitf893bfb61531548eeaff432e8d10758e86e788a7 (patch)
tree002bcaa157187855e652a1db630de5daeba90ab6 /scripts/setlocalversion
parente82c4bb8b457926e13d4dd3aacbb8e573daede23 (diff)
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 <christophe.leroy@c-s.fr> Signed-off-by: Michal Marek <mmarek@suse.cz>
Diffstat (limited to 'scripts/setlocalversion')
-rwxr-xr-xscripts/setlocalversion2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/setlocalversion b/scripts/setlocalversion
index bd6dca8a0ab2..84b88f109b80 100755
--- a/scripts/setlocalversion
+++ b/scripts/setlocalversion
@@ -108,7 +108,7 @@ scm_version()
108 fi 108 fi
109 109
110 # Check for svn and a svn repo. 110 # Check for svn and a svn repo.
111 if rev=`svn info 2>/dev/null | grep '^Last Changed Rev'`; then 111 if rev=`LANG= LC_ALL= LC_MESSAGES=C svn info 2>/dev/null | grep '^Last Changed Rev'`; then
112 rev=`echo $rev | awk '{print $NF}'` 112 rev=`echo $rev | awk '{print $NF}'`
113 printf -- '-svn%s' "$rev" 113 printf -- '-svn%s' "$rev"
114 114