diff options
Diffstat (limited to 'mac/make-package')
| -rwxr-xr-x | mac/make-package | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/mac/make-package b/mac/make-package index d6e0b66cc94..c6639eee56c 100755 --- a/mac/make-package +++ b/mac/make-package | |||
| @@ -270,16 +270,23 @@ if test "$self_contained" = "yes"; then | |||
| 270 | installprefix=$tempparentfull/$appsdir/$emapp/Contents/Resources | 270 | installprefix=$tempparentfull/$appsdir/$emapp/Contents/Resources |
| 271 | fi | 271 | fi |
| 272 | 272 | ||
| 273 | |||
| 274 | make_options="prefix=${installprefix} $make_options" | ||
| 275 | |||
| 276 | if test "$with_app" = "yes"; then | ||
| 277 | make_options="carbon_appdir=${tempparentfull}/Applications $make_options" | ||
| 278 | fi | ||
| 279 | |||
| 273 | ## Make bootstrap if .elc files are missing from distribution | 280 | ## Make bootstrap if .elc files are missing from distribution |
| 274 | if [ ! -f ${srcdir}/lisp/abbrev.elc ]; then | 281 | if [ ! -f ${srcdir}/lisp/abbrev.elc ]; then |
| 275 | echo "Required .elc files missing; making bootstrap..." | 282 | echo "Required .elc files missing; making bootstrap..." |
| 276 | if ! (cd ${builddir}; make bootstrap prefix=$installprefix $make_options); then | 283 | if ! (cd ${builddir}; make bootstrap $make_options); then |
| 277 | echo "Make bootstrap failed... Aborting make-package." | 284 | echo "Make bootstrap failed... Aborting make-package." |
| 278 | exit 2 | 285 | exit 2 |
| 279 | fi | 286 | fi |
| 280 | fi | 287 | fi |
| 281 | 288 | ||
| 282 | if ! (cd ${builddir}; make install prefix=$installprefix $make_options); then | 289 | if ! (cd ${builddir}; make install $make_options); then |
| 283 | echo "Make failed... Aborting make-package." | 290 | echo "Make failed... Aborting make-package." |
| 284 | exit 1 | 291 | exit 1 |
| 285 | fi | 292 | fi |
| @@ -294,10 +301,6 @@ if test "$with_app" == "yes"; then | |||
| 294 | echo "Creating Emacs.app application" | 301 | echo "Creating Emacs.app application" |
| 295 | tempappdir=${tempparentfull}${appsdir} | 302 | tempappdir=${tempparentfull}${appsdir} |
| 296 | tempemapp=${tempappdir}/${emapp}/Contents/MacOS/Emacs | 303 | tempemapp=${tempappdir}/${emapp}/Contents/MacOS/Emacs |
| 297 | mkdir ${tempappdir} | ||
| 298 | |||
| 299 | ## Copy Emacs application | ||
| 300 | cp -r ${builddir}/mac/Emacs.app ${tempappdir} | ||
| 301 | ## Delete any CVS files | 304 | ## Delete any CVS files |
| 302 | find ${tempappdir} -name "CVS" -type d -exec rm -rf {} \; | 305 | find ${tempappdir} -name "CVS" -type d -exec rm -rf {} \; |
| 303 | 306 | ||