Mercurial > emacs
comparison mac/make-package @ 48749:94d8efd47824
Now correctly creates a self-contained application
author | Steven Tamm <steventamm@mac.com> |
---|---|
date | Sun, 08 Dec 2002 18:29:36 +0000 |
parents | d78591287910 |
children | f433f827b70f |
comparison
equal
deleted
inserted
replaced
48748:0f5f21cee53f | 48749:94d8efd47824 |
---|---|
83 -with-x | --with-x) | 83 -with-x | --with-x) |
84 with_x=yes | 84 with_x=yes |
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 ;; |
92 --keep-dir) | 92 --keep-dir) |
93 keep_directory=yes ;; | 93 keep_directory=yes ;; |
94 -C,* | -c,*) | 94 -C,* | -c,*) |
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 |
102 | 103 |
103 if test "$with_x" = "no"; then | 104 if test "$with_x" = "no"; then |
256 fi | 257 fi |
257 | 258 |
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 |
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 | |
279 | 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 |
283 | 294 |