# HG changeset patch # User Andrew Choi # Date 1051546535 0 # Node ID efd65678bb08791bd5cf47b9357774b9b1cd254f # Parent c33d684245e2d4e82373b35cbf955097761d9c9c * make-package: Allocate 5% extra space on disk image for directories and partition tables. diff -r c33d684245e2 -r efd65678bb08 mac/ChangeLog --- a/mac/ChangeLog Mon Apr 28 14:07:13 2003 +0000 +++ b/mac/ChangeLog Mon Apr 28 16:15:35 2003 +0000 @@ -1,3 +1,8 @@ +2003-04-28 Andrew Choi + + * make-package: Allocate 5% extra space on disk image for + directories and partition tables. + 2003-04-04 Steven Tamm * make-package: Place libexec executables directly under the diff -r c33d684245e2 -r efd65678bb08 mac/make-package --- a/mac/make-package Mon Apr 28 14:07:13 2003 +0000 +++ b/mac/make-package Mon Apr 28 16:15:35 2003 +0000 @@ -385,9 +385,9 @@ cat ${sizesfile} echo "Creating Disc Image" -## Allocate an extra 5000 sectors (about 2.5 mg) -## Note a sector appears to be 512k -sectorsAlloced=`echo 2*${compressedSize}+20|bc` +## From hdiutil man page, a sector is 512k. Allocate an extra 5% for +## directories and partition tables. +sectorsAlloced=`echo 2.1*${compressedSize}|bc` hdiutil create -ov ${builddir}/mac/EmacsRW -sectors ${sectorsAlloced} ## Need to format the disc image before mounting mountLoc=`hdid -nomount ${builddir}/mac/EmacsRW.dmg | grep HFS | cut -f1`