313 |
fi |
fi |
314 |
fi |
fi |
315 |
|
|
316 |
|
compver=powerpc-apple-darwin`uname -r` |
317 |
|
|
318 |
if test "$self_contained" = "yes"; then |
if test "$self_contained" = "yes"; then |
319 |
# Move shared files down to Resources directory |
# Move shared files down to Resources directory |
320 |
mv $installprefix/share/emacs/$version/* $installprefix |
mv $installprefix/share/emacs/$version/* $installprefix |
321 |
rm -rf $installprefix/share |
rm -rf $installprefix/share |
322 |
# These directories might remain in Resources |
# These directories might remain in Resources |
323 |
mv $installprefix/bin $installprefix/../MacOS/bin |
mv $installprefix/bin $installprefix/../MacOS/bin |
324 |
mv $installprefix/libexec $installprefix/../MacOS/libexec |
mv $installprefix/libexec/emacs/$version/$compver $installprefix/../MacOS/libexec |
325 |
# Make the application binary a hard link |
# Make the application binary a hard link |
326 |
rm $installprefix/../MacOS/Emacs |
rm $installprefix/../MacOS/Emacs |
327 |
ln $installprefix/../MacOS/bin/emacs $installprefix/../MacOS/Emacs |
ln $installprefix/../MacOS/bin/emacs $installprefix/../MacOS/Emacs |
385 |
cat ${sizesfile} |
cat ${sizesfile} |
386 |
|
|
387 |
echo "Creating Disc Image" |
echo "Creating Disc Image" |
388 |
## Allocate an extra 5000 sectors (about 2.5 mg) |
## From hdiutil man page, a sector is 512k. Allocate an extra 5% for |
389 |
## Note a sector appears to be 512k |
## directories and partition tables. |
390 |
sectorsAlloced=`echo 2*${compressedSize}+20|bc` |
sectorsAlloced=`echo 2.1*${compressedSize}|bc` |
391 |
hdiutil create -ov ${builddir}/mac/EmacsRW -sectors ${sectorsAlloced} |
hdiutil create -ov ${builddir}/mac/EmacsRW -sectors ${sectorsAlloced} |
392 |
## Need to format the disc image before mounting |
## Need to format the disc image before mounting |
393 |
mountLoc=`hdid -nomount ${builddir}/mac/EmacsRW.dmg | grep HFS | cut -f1` |
mountLoc=`hdid -nomount ${builddir}/mac/EmacsRW.dmg | grep HFS | cut -f1` |
425 |
echo "Cleaning up the staging directory" |
echo "Cleaning up the staging directory" |
426 |
rm -rf ${builddir}/mac/Emacs.pkg ${removable_build_dir} |
rm -rf ${builddir}/mac/Emacs.pkg ${removable_build_dir} |
427 |
|
|
428 |
|
# arch-tag: 1b631d0d-9fde-4f71-80c0-33e0e5815515 |
429 |
### make-package ends here |
### make-package ends here |