From d28b0b06d0ebd6e99efeffaa0df3a5202ce24c0b Mon Sep 17 00:00:00 2001 From: Philippe Houdoin Date: Mon, 30 May 2011 13:31:56 +0000 Subject: [PATCH] Of course, when incomptability kick in, it's never limited only to option string: FreeBSD's stat command line don't use %s format specifier for file size. Instead, %s specifier is unused at all and they goes with %z. For file Zize, I guess... git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41830 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- build/jam/ImageRules | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build/jam/ImageRules b/build/jam/ImageRules index 3dc5257f95..b9090353d5 100644 --- a/build/jam/ImageRules +++ b/build/jam/ImageRules @@ -1385,7 +1385,8 @@ actions BuildFloppyBootImage1 haiku_loader_size=`stat -c %s "$(>[1])"` if [ $? -ne 0 ] ; then # FreeBSD's stat command don't support -c/--format option - haiku_loader_size=`stat -f %s "$(>[1])"` + # and use %z specifier for file size + haiku_loader_size=`stat -f %z "$(>[1])"` fi archive_image_offset=`echo "$(ARCHIVE_IMAGE_OFFSET) * 1024" | bc` if [ $haiku_loader_size -gt $archive_image_offset ] ; then