Quote test -f argument, so it doesn't fail on spaces.
authorPatrick Georgi <patrick.georgi@coresystems.de>
Wed, 14 Apr 2010 20:47:45 +0000 (20:47 +0000)
committerPatrick Georgi <patrick.georgi@coresystems.de>
Wed, 14 Apr 2010 20:47:45 +0000 (20:47 +0000)
Signed-off-by: Patrick Georgi <patrick.georgi@coresystems.de>
Acked-by: Patrick Georgi <patrick.georgi@coresystems.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5437 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

Makefile

index 02cae70d78f2bb6d18354e38d698ee41af22f46b..f3a4fbf5491d9a6a7be2fa1c40feddf2b7d8e501 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -295,7 +295,7 @@ $(obj)/build.h: .xcompile
        printf "/* build system definitions (autogenerated) */\n" > $(obj)/build.ht
        printf "#ifndef __BUILD_H\n" >> $(obj)/build.ht
        printf "#define __BUILD_H\n\n" >> $(obj)/build.ht
-       printf "#define COREBOOT_VERSION \"$(KERNELVERSION)-r$(shell if [ -d $(top)/.svn -a -f `which svnversion` ]; then svnversion $(top); else if [ -d $(top)/.git -a -f `which git` ]; then git --git-dir=/$(top)/.git log|grep git-svn-id|cut -f 2 -d@|cut -f 1 -d' '|sort -g|tail -1; fi; fi)\"\n" >> $(obj)/build.ht
+       printf "#define COREBOOT_VERSION \"$(KERNELVERSION)-r$(shell if [ -d $(top)/.svn -a -f "`which svnversion`" ]; then svnversion $(top); else if [ -d $(top)/.git -a -f "`which git`" ]; then git --git-dir=/$(top)/.git log|grep git-svn-id|cut -f 2 -d@|cut -f 1 -d' '|sort -g|tail -1; fi; fi)\"\n" >> $(obj)/build.ht
        printf "#define COREBOOT_EXTRA_VERSION \"$(COREBOOT_EXTRA_VERSION)\"\n" >> $(obj)/build.ht
        printf "#define COREBOOT_BUILD \"`LANG= date`\"\n" >> $(obj)/build.ht
        printf "\n" >> $(obj)/build.ht