[haiku-commits] r34943 - haiku/trunk/src/system/boot/platform/u-boot

Author: mmu_man
Date: 2010-01-08 00:31:12 +0100 (Fri, 08 Jan 2010)
New Revision: 34943
Changeset: http://dev.haiku-os.org/changeset/34943/haiku

Modified:
   haiku/trunk/src/system/boot/platform/u-boot/Jamfile
Log:
Undo r34942 and use printf instead, which is standardized by POSIX and supports 
\n, thanks DraX!


Modified: haiku/trunk/src/system/boot/platform/u-boot/Jamfile
===================================================================
--- haiku/trunk/src/system/boot/platform/u-boot/Jamfile 2010-01-07 23:03:19 UTC 
(rev 34942)
+++ haiku/trunk/src/system/boot/platform/u-boot/Jamfile 2010-01-07 23:31:12 UTC 
(rev 34943)
@@ -145,12 +145,8 @@
        SDIMAGE_BLOCK_SIZE on $(image) = 1M ;
        SDIMAGE_SIZE on $(image) = $(HAIKU_BOARD_SDIMAGE_SIZE) ;
        SDIMAGE_FDISK on $(image) = $(HOST_SFDISK) ;
-       # do not change the formatting, we need the linefeeds!
        SDIMAGE_FDISK_SCRIPT on $(image) = 
-               "0,$(HAIKU_BOARD_SDIMAGE_FAT_SIZE),0c,-
-,,eb
-
-" ;
+               "0,$(HAIKU_BOARD_SDIMAGE_FAT_SIZE),0c,-\\\n,,eb\\\n\\\n" ;
        SDIMAGE_FDISK_H on $(image) = 255 ;
        SDIMAGE_FDISK_S on $(image) = 63 ;
        SDIMAGE_FDISK_UNIT on $(image) = M ;
@@ -168,7 +164,7 @@
                bs=$(SDIMAGE_BLOCK_SIZE) \
                count=$(SDIMAGE_SIZE)
        # partition it
-       echo '$(SDIMAGE_FDISK_SCRIPT)' | $(SDIMAGE_FDISK) -f -D \
+       printf '$(SDIMAGE_FDISK_SCRIPT)' | $(SDIMAGE_FDISK) -f -D \
                -H $(SDIMAGE_FDISK_H) -S $(SDIMAGE_FDISK_S) \
                -u$(SDIMAGE_FDISK_UNIT) $(<)
        # generate mtools config


Other related posts:

  • » [haiku-commits] r34943 - haiku/trunk/src/system/boot/platform/u-boot - revol