comparison 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
comparison
equal deleted inserted replaced
49004:c70fd9638f43 49005:5c4e830c411b
49 appsdir=/Applications 49 appsdir=/Applications
50 emapp=Emacs.app 50 emapp=Emacs.app
51 with_config=yes 51 with_config=yes
52 with_app=yes 52 with_app=yes
53 with_x=no 53 with_x=no
54 comp_diskimage=yes 54 comp_diskimage=no
55 self_contained=no 55 self_contained=no
56 app_symlink=no 56 app_symlink=no
57 full_dist=yes 57 full_dist=yes
58 build_in_place=no 58 build_in_place=no
59 keep_directory=no 59 keep_directory=no
330 330
331 mkdir ${packagedir} 331 mkdir ${packagedir}
332 mkdir ${packagedir}/Contents 332 mkdir ${packagedir}/Contents
333 mkdir ${packagedir}/Contents/Resources 333 mkdir ${packagedir}/Contents/Resources
334 mkdir ${packagedir}/Contents/Resources/English.lproj 334 mkdir ${packagedir}/Contents/Resources/English.lproj
335 echo 'pmkrpkg1' > ${packagedir}/Contents/PkgInfo 335 echo -n 'pmkrpkg1' > ${packagedir}/Contents/PkgInfo
336
337 # Create ReadMe and License files
338 cp ${srcdir}/COPYING ${packagedir}/Contents/Resources/License.txt
339 cp ${srcdir}/mac/README ${packagedir}/Contents/Resources/ReadMe.txt
336 340
337 infofile=${packagedir}/Contents/Resources/English.lproj/Emacs.info 341 infofile=${packagedir}/Contents/Resources/English.lproj/Emacs.info
338 342
339 echo 'Title GNU Emacs' > ${infofile} 343 echo 'Title GNU Emacs' > ${infofile}
340 echo "Version ${version}" >> ${infofile} 344 echo "Version ${version}" >> ${infofile}
375 cat ${sizesfile} 379 cat ${sizesfile}
376 380
377 echo "Creating Disc Image" 381 echo "Creating Disc Image"
378 ## Allocate an extra 5000 sectors (about 2.5 mg) 382 ## Allocate an extra 5000 sectors (about 2.5 mg)
379 ## Note a sector appears to be 512k 383 ## Note a sector appears to be 512k
380 sectorsAlloced=`echo 2*${compressedSize}+5000|bc` 384 sectorsAlloced=`echo 2*${compressedSize}+20|bc`
381 hdiutil create -ov ${builddir}/mac/EmacsRW -sectors ${sectorsAlloced} 385 hdiutil create -ov ${builddir}/mac/EmacsRW -sectors ${sectorsAlloced}
382 ## Need to format the disc image before mounting 386 ## Need to format the disc image before mounting
383 mountLoc=`hdid -nomount ${builddir}/mac/EmacsRW.dmg | grep HFS | cut -f1` 387 mountLoc=`hdid -nomount ${builddir}/mac/EmacsRW.dmg | grep HFS | cut -f1`
384 /sbin/newfs_hfs -v Emacs ${mountLoc} 388 /sbin/newfs_hfs -v Emacs ${mountLoc}
385 hdiutil eject ${mountLoc} 389 hdiutil eject ${mountLoc}