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
This commit is contained in:
Philippe Houdoin
2011-05-30 13:31:56 +00:00
parent c3510ace83
commit d28b0b06d0
+2 -1
View File
@@ -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