Skip to contentSkip to conversation

tools: fixed svn revision l10n-ism

PATCH New Stephane Fillod 2 participants 2 messages Jun 1, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tools: fixed svn revision l10n-ism

Fixed a l10n-ism in svn revision retrieval.

---

tools/setlocalversion +1 -1
@@ -31,7 +31,7 @@
 fi
 
 # Check for svn and a svn repo.
-if rev=`svn info 2>/dev/null` ; then
+if rev=`LANG=C svn info 2>/dev/null` ; then
 	rev=`echo "${rev}" | grep '^Revision' | awk '{print $NF}'`
 	printf -- '-svn%s' $rev
 fi
#1 lore raw

PATCH 1/1 tools: fixed svn revision l10n-ism

tools/setlocalversion line 35

Quoted 3 lines · On Wednesday, June 01, 2011 11:02:30 Stephane Fillod wrote:
tools/setlocalversion +1 -1
-if rev=`svn info 2>/dev/null` ; then
+if rev=`LANG=C svn info 2>/dev/null` ; then
 	rev=`echo "${rev}" | grep '^Revision' | awk '{print $NF}'`

LANG=C wont fix the bug, just make it work in more cases. you need LC_ALL=C. -mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
Url : http://lists.denx.de/pipermail/u-boot/attachments/20110601/792b6cf6/attachment.pgp