diff mac/make-package @ 49005:5c4e830c411b

* make-package: Now copies License and ReadMe files into the Resources directory. Reduces overhead size when creating installer disk image
author Steven Tamm <steventamm@mac.com>
date Wed, 01 Jan 2003 00:27:01 +0000
parents dfea5194194f
children 4d9ad5d4f2d4
line wrap: on
line diff
--- a/mac/make-package	Tue Dec 31 04:55:47 2002 +0000
+++ b/mac/make-package	Wed Jan 01 00:27:01 2003 +0000
@@ -51,7 +51,7 @@
 with_config=yes
 with_app=yes
 with_x=no
-comp_diskimage=yes
+comp_diskimage=no
 self_contained=no
 app_symlink=no
 full_dist=yes
@@ -332,7 +332,11 @@
 mkdir ${packagedir}/Contents
 mkdir ${packagedir}/Contents/Resources
 mkdir ${packagedir}/Contents/Resources/English.lproj
-echo 'pmkrpkg1' > ${packagedir}/Contents/PkgInfo
+echo -n 'pmkrpkg1' > ${packagedir}/Contents/PkgInfo
+
+# Create ReadMe and License files
+cp ${srcdir}/COPYING ${packagedir}/Contents/Resources/License.txt
+cp ${srcdir}/mac/README ${packagedir}/Contents/Resources/ReadMe.txt
 
 infofile=${packagedir}/Contents/Resources/English.lproj/Emacs.info
 
@@ -377,7 +381,7 @@
 echo "Creating Disc Image"
 ## Allocate an extra 5000 sectors (about 2.5 mg)
 ## Note a sector appears to be 512k
-sectorsAlloced=`echo 2*${compressedSize}+5000|bc`
+sectorsAlloced=`echo 2*${compressedSize}+20|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`