Mercurial > emacs
comparison mac/make-package @ 50724:efd65678bb08
* make-package: Allocate 5% extra space on disk image for directories
and partition tables.
author | Andrew Choi <akochoi@shaw.ca> |
---|---|
date | Mon, 28 Apr 2003 16:15:35 +0000 |
parents | 33c5c2bf40c2 |
children | 695cf19ef79e |
comparison
equal
deleted
inserted
replaced
50723:c33d684245e2 | 50724:efd65678bb08 |
---|---|
383 echo "InstalledSize ${installedSize}" >> ${sizesfile} | 383 echo "InstalledSize ${installedSize}" >> ${sizesfile} |
384 echo "CompressedSize ${compressedSize}" >> ${sizesfile} | 384 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` |
394 /sbin/newfs_hfs -v Emacs ${mountLoc} | 394 /sbin/newfs_hfs -v Emacs ${mountLoc} |
395 hdiutil eject ${mountLoc} | 395 hdiutil eject ${mountLoc} |