diff options
| author | Andrew Choi | 2003-04-28 16:15:35 +0000 |
|---|---|---|
| committer | Andrew Choi | 2003-04-28 16:15:35 +0000 |
| commit | 8472b9cf41814e30ad81546d7016f6e86af3d6df (patch) | |
| tree | 9d8c399a589c39cecbb42970f403b3425214a38d /mac/make-package | |
| parent | dc1cc0f63973cbc9b224cd2990bbe7eee90980ad (diff) | |
| download | emacs-8472b9cf41814e30ad81546d7016f6e86af3d6df.tar.gz emacs-8472b9cf41814e30ad81546d7016f6e86af3d6df.zip | |
* make-package: Allocate 5% extra space on disk image for directories
and partition tables.
Diffstat (limited to 'mac/make-package')
| -rwxr-xr-x | mac/make-package | 6 |
1 files changed, 3 insertions, 3 deletions
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} | |||
| 385 | cat ${sizesfile} | 385 | cat ${sizesfile} |
| 386 | 386 | ||
| 387 | echo "Creating Disc Image" | 387 | echo "Creating Disc Image" |
| 388 | ## Allocate an extra 5000 sectors (about 2.5 mg) | 388 | ## From hdiutil man page, a sector is 512k. Allocate an extra 5% for |
| 389 | ## Note a sector appears to be 512k | 389 | ## directories and partition tables. |
| 390 | sectorsAlloced=`echo 2*${compressedSize}+20|bc` | 390 | sectorsAlloced=`echo 2.1*${compressedSize}|bc` |
| 391 | hdiutil create -ov ${builddir}/mac/EmacsRW -sectors ${sectorsAlloced} | 391 | hdiutil create -ov ${builddir}/mac/EmacsRW -sectors ${sectorsAlloced} |
| 392 | ## Need to format the disc image before mounting | 392 | ## Need to format the disc image before mounting |
| 393 | mountLoc=`hdid -nomount ${builddir}/mac/EmacsRW.dmg | grep HFS | cut -f1` | 393 | mountLoc=`hdid -nomount ${builddir}/mac/EmacsRW.dmg | grep HFS | cut -f1` |