Author: oxygene
Date: Wed Apr 14 22:47:45 2010
New Revision: 5437
URL: https://tracker.coreboot.org/trac/coreboot/changeset/5437

Log:
Quote test -f argument, so it doesn't fail on spaces.

Signed-off-by: Patrick Georgi <[email protected]>
Acked-by: Patrick Georgi <[email protected]>

Modified:
   trunk/Makefile

Modified: trunk/Makefile
==============================================================================
--- trunk/Makefile      Wed Apr 14 22:42:42 2010        (r5436)
+++ trunk/Makefile      Wed Apr 14 22:47:45 2010        (r5437)
@@ -295,7 +295,7 @@
        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

-- 
coreboot mailing list: [email protected]
http://www.coreboot.org/mailman/listinfo/coreboot

Reply via email to