All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot-Users] [PATCH] Add brackets to if condition in tools/setlocalversion
@ 2008-03-20 23:49 Tsi-Chung Liew
  2008-03-21  0:24 ` Wolfgang Denk
  0 siblings, 1 reply; 5+ messages in thread
From: Tsi-Chung Liew @ 2008-03-20 23:49 UTC (permalink / raw)
  To: u-boot

The long condition in the script causes all ColdFire platforms
unable to compile correctly. By adding square brackets, all
compile without error.

Signed-off-by: TsiChung Liew <Tsi-Chung.Liew@freescale.com>
---
 tools/setlocalversion |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/tools/setlocalversion b/tools/setlocalversion
index 9bbdafd..2c27291 100755
--- a/tools/setlocalversion
+++ b/tools/setlocalversion
@@ -11,8 +11,8 @@ cd "${1:-.}" || usage
 # Check for git and a git repo.
 if head=`git rev-parse --verify HEAD 2>/dev/null`; then
 	# Do we have an untagged version?
-	if git name-rev --tags HEAD | \
-	   grep -E '^HEAD[[:space:]]+(.*~[0-9]*|undefined)$' > /dev/null; then
+	if [git name-rev --tags HEAD | \
+	   grep -E '^HEAD[[:space:]]+(.*~[0-9]*|undefined)$' > /dev/null]; then
 	        git describe | awk -F- '{printf("-%05d-%s", $(NF-1),$(NF))}'
 	fi
 
-- 
1.5.4.1

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2008-03-24 20:34 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-20 23:49 [U-Boot-Users] [PATCH] Add brackets to if condition in tools/setlocalversion Tsi-Chung Liew
2008-03-21  0:24 ` Wolfgang Denk
2008-03-24 19:12   ` Liew Tsi Chung
2008-03-24 19:48     ` John Rigby
2008-03-24 20:34       ` Liew Tsi Chung

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.