Skip to content

Commit

Permalink
kbuild: Unset language specific variables in setlocalversion script
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Michal Marek <[email protected]>
  • Loading branch information
chleroy authored and michal42 committed Feb 22, 2013
1 parent e82c4bb commit f893bfb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/setlocalversion
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down

0 comments on commit f893bfb

Please sign in to comment.