When building floppy boot image on FreeBSD, the stat command line fail on
the -c/--format option which is unsupported on this platform. Add a fallback, which should fix #7613. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41829 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
b58ab52cd6
commit
c3510ace83
@ -1382,7 +1382,11 @@ rule BuildFloppyBootImage image : haikuLoader : archive
|
||||
|
||||
actions BuildFloppyBootImage1
|
||||
{
|
||||
haiku_loader_size=`stat -c %s $(>[1])`
|
||||
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])"`
|
||||
fi
|
||||
archive_image_offset=`echo "$(ARCHIVE_IMAGE_OFFSET) * 1024" | bc`
|
||||
if [ $haiku_loader_size -gt $archive_image_offset ] ; then
|
||||
echo "Error: $(>[1]) is too big ($haiku_loader_size) to fit "
|
||||
|
Loading…
Reference in New Issue
Block a user