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:
@@ -1385,7 +1385,8 @@ actions BuildFloppyBootImage1
|
|||||||
haiku_loader_size=`stat -c %s "$(>[1])"`
|
haiku_loader_size=`stat -c %s "$(>[1])"`
|
||||||
if [ $? -ne 0 ] ; then
|
if [ $? -ne 0 ] ; then
|
||||||
# FreeBSD's stat command don't support -c/--format option
|
# 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
|
fi
|
||||||
archive_image_offset=`echo "$(ARCHIVE_IMAGE_OFFSET) * 1024" | bc`
|
archive_image_offset=`echo "$(ARCHIVE_IMAGE_OFFSET) * 1024" | bc`
|
||||||
if [ $haiku_loader_size -gt $archive_image_offset ] ; then
|
if [ $haiku_loader_size -gt $archive_image_offset ] ; then
|
||||||
|
|||||||
Reference in New Issue
Block a user