]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
kbuild: Unset language specific variables in setlocalversion script
authorChristophe Leroy <christophe.leroy@c-s.fr>
Fri, 22 Feb 2013 08:59:18 +0000 (09:59 +0100)
committerMichal Marek <mmarek@suse.cz>
Fri, 22 Feb 2013 13:18:30 +0000 (14:18 +0100)
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>
scripts/setlocalversion

index bd6dca8a0ab23b78e0499a8868ec08bdb92e48f3..84b88f109b80fcc2d7e25e594431bf3a6374962c 100755 (executable)
@@ -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"