summaryrefslogtreecommitdiff
path: root/mac
diff options
context:
space:
mode:
authorAndrew Choi <akochoi@shaw.ca>2003-04-28 16:15:35 +0000
committerAndrew Choi <akochoi@shaw.ca>2003-04-28 16:15:35 +0000
commita90dbbcfd8609ceb59db18a739aeccac992f6780 (patch)
tree4690de809807448225f7373116ba8afa634b9c2b /mac
parent94f96396b195f77218a026886268bac8e5cf4a69 (diff)
downloademacs-a90dbbcfd8609ceb59db18a739aeccac992f6780.tar.gz
* make-package: Allocate 5% extra space on disk image for directories
and partition tables.
Diffstat (limited to 'mac')
-rw-r--r--mac/ChangeLog5
-rwxr-xr-xmac/make-package6
2 files changed, 8 insertions, 3 deletions
diff --git a/mac/ChangeLog b/mac/ChangeLog
index 6798c4f9e29..6e8bff007ea 100644
--- a/mac/ChangeLog
+++ b/mac/ChangeLog
@@ -1,3 +1,8 @@
+2003-04-28 Andrew Choi <akochoi@shaw.ca>
+
+ * make-package: Allocate 5% extra space on disk image for
+ directories and partition tables.
+
2003-04-04 Steven Tamm <steventamm@mac.com>
* make-package: Place libexec executables directly under the
diff --git a/mac/make-package b/mac/make-package
index 472df36c36b..b3911afa0da 100755
--- a/mac/make-package
+++ b/mac/make-package
@@ -385,9 +385,9 @@ echo "CompressedSize ${compressedSize}" >> ${sizesfile}
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`