diff options
| author | Steven Tamm | 2002-12-08 18:29:36 +0000 |
|---|---|---|
| committer | Steven Tamm | 2002-12-08 18:29:36 +0000 |
| commit | ed324b45516c07d19dcebb290e4675e6062f588a (patch) | |
| tree | 082e25820a1cf92cb195eed7b9ca348ff0853330 /mac | |
| parent | b3d08fe6be97d5ccb351ac54aa826cbf68431ea4 (diff) | |
| download | emacs-ed324b45516c07d19dcebb290e4675e6062f588a.tar.gz emacs-ed324b45516c07d19dcebb290e4675e6062f588a.zip | |
Now correctly creates a self-contained application
Diffstat (limited to 'mac')
| -rwxr-xr-x | mac/make-package | 27 |
1 files changed, 19 insertions, 8 deletions
diff --git a/mac/make-package b/mac/make-package index 7b5c189934a..81ea44915fb 100755 --- a/mac/make-package +++ b/mac/make-package | |||
| @@ -85,7 +85,7 @@ do | |||
| 85 | with_app=no ;; | 85 | with_app=no ;; |
| 86 | --without-full-dist | -without-full-dist | -no-full-dist | -no-full) | 86 | --without-full-dist | -without-full-dist | -no-full-dist | -no-full) |
| 87 | full_dist=no ;; | 87 | full_dist=no ;; |
| 88 | -self-contained | --with-self-contained-app | -sc) | 88 | --self-contained | -self-contained | --with-self-contained-app | -sc) |
| 89 | self_contained=yes ;; | 89 | self_contained=yes ;; |
| 90 | -app-symlink | --app-symlink | -symlink | --symlink | --asl) | 90 | -app-symlink | --app-symlink | -symlink | --symlink | --asl) |
| 91 | app_symlink=yes ;; | 91 | app_symlink=yes ;; |
| @@ -95,7 +95,8 @@ do | |||
| 95 | config_options="$config_options `expr "x$1" : 'x[^,]*,\(.*\)'`" ;; | 95 | config_options="$config_options `expr "x$1" : 'x[^,]*,\(.*\)'`" ;; |
| 96 | -M,* | -m,*) | 96 | -M,* | -m,*) |
| 97 | make_options="$make_options `expr "x$1" : 'x[^,]*,\(.*\)'`" ;; | 97 | make_options="$make_options `expr "x$1" : 'x[^,]*,\(.*\)'`" ;; |
| 98 | 98 | *) | |
| 99 | display_usage=yes ;; | ||
| 99 | esac | 100 | esac |
| 100 | shift | 101 | shift |
| 101 | done | 102 | done |
| @@ -258,25 +259,35 @@ fi | |||
| 258 | if test "$with_app" == "yes"; then | 259 | if test "$with_app" == "yes"; then |
| 259 | echo "Creating Emacs.app application" | 260 | echo "Creating Emacs.app application" |
| 260 | tempappdir=${tempparentfull}${appsdir} | 261 | tempappdir=${tempparentfull}${appsdir} |
| 262 | tempemapp=${tempappdir}/${emapp}/Contents/MacOS/Emacs | ||
| 261 | mkdir ${tempappdir} | 263 | mkdir ${tempappdir} |
| 262 | 264 | ||
| 263 | ## Copy Emacs application | 265 | ## Copy Emacs application |
| 264 | cp -r Emacs.app ${tempappdir} | 266 | cp -r Emacs.app ${tempappdir} |
| 265 | ## Delete any CVS files | 267 | ## Delete any CVS files |
| 266 | find ${tempappdir} -name "CVS" -type d -execdir rm -rf {} \; | 268 | find ${tempappdir} -name "CVS" -type d -execdir rm -rf {} \; |
| 269 | |||
| 267 | ## Have application be a symlink to ${prefix}/bin/emacs | 270 | ## Have application be a symlink to ${prefix}/bin/emacs |
| 268 | if test "$app_symlink" == "yes"; then | 271 | if test "$app_symlink" == "yes"; then |
| 269 | echo "Creating application symlink" | 272 | echo "Creating application symlink" |
| 270 | tempemapp=${tempappdir}/${emapp}/Contents/MacOS/Emacs | ||
| 271 | rm ${tempemapp} | 273 | rm ${tempemapp} |
| 272 | if test "$self_contained" = "yes"; then | 274 | ln -s ${prefix}/bin/${emacsname} ${tempemapp} |
| 273 | ln -s ../../Contents/Resources/bin/${emacsname} ${tempemapp} | ||
| 274 | else | ||
| 275 | ln -s ${prefix}/bin/${emacsname} ${tempemapp} | ||
| 276 | fi | ||
| 277 | fi | 275 | fi |
| 278 | fi | 276 | fi |
| 279 | 277 | ||
| 278 | if test "$self_contained" = "yes"; then | ||
| 279 | # Move shared files down to Resources directory | ||
| 280 | mv $installprefix/share/emacs/$version/* $installprefix | ||
| 281 | rm -rf $installprefix/share | ||
| 282 | # These directories might remain in Resources | ||
| 283 | mv $installprefix/bin $installprefix/../MacOS/bin | ||
| 284 | mv $installprefix/libexec $installprefix/../MacOS/libexec | ||
| 285 | # Make the application binary a hard link | ||
| 286 | rm $installprefix/../MacOS/Emacs | ||
| 287 | ln $installprefix/../MacOS/bin/emacs $installprefix/../MacOS/Emacs | ||
| 288 | fi | ||
| 289 | |||
| 290 | |||
| 280 | # Remove unnecessary .el files | 291 | # Remove unnecessary .el files |
| 281 | #if test "$full_dist" = no; then | 292 | #if test "$full_dist" = no; then |
| 282 | #fi | 293 | #fi |