diff options
Diffstat (limited to 'mac/make-package')
| -rwxr-xr-x | mac/make-package | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/mac/make-package b/mac/make-package index bef6aa9b2de..85c6646c5da 100755 --- a/mac/make-package +++ b/mac/make-package | |||
| @@ -55,6 +55,7 @@ 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 | compressed_dist=no | ||
| 58 | build_in_place=no | 59 | build_in_place=no |
| 59 | keep_directory=no | 60 | keep_directory=no |
| 60 | 61 | ||
| @@ -94,6 +95,8 @@ do | |||
| 94 | with_app=no ;; | 95 | with_app=no ;; |
| 95 | --without-full-dist | -without-full-dist | -no-full-dist | -no-full) | 96 | --without-full-dist | -without-full-dist | -no-full-dist | -no-full) |
| 96 | full_dist=no ;; | 97 | full_dist=no ;; |
| 98 | --compressed-dist) | ||
| 99 | compressed_dist=yes ;; | ||
| 97 | --self-contained | -self-contained | --with-self-contained-app | -sc) | 100 | --self-contained | -self-contained | --with-self-contained-app | -sc) |
| 98 | self_contained=yes ;; | 101 | self_contained=yes ;; |
| 99 | -app-symlink | --app-symlink | -symlink | --symlink | --asl) | 102 | -app-symlink | --app-symlink | -symlink | --symlink | --asl) |
| @@ -138,6 +141,7 @@ Options: | |||
| 138 | --without-app. | 141 | --without-app. |
| 139 | --without-full-dist Do not include all the .el files in the distribution. | 142 | --without-full-dist Do not include all the .el files in the distribution. |
| 140 | This is discouraged except if disk space is critical. | 143 | This is discouraged except if disk space is critical. |
| 144 | --compressed-dist Compress .el and info files in the distribution. | ||
| 141 | --app-symlink Have the Emacs.app executable be a symlink | 145 | --app-symlink Have the Emacs.app executable be a symlink |
| 142 | to the install in [prefix]/bin/emacs and have | 146 | to the install in [prefix]/bin/emacs and have |
| 143 | the emacs executable link to emacs-${version} | 147 | the emacs executable link to emacs-${version} |
| @@ -298,6 +302,14 @@ if test "$full_dist" == "no"; then | |||
| 298 | find $sharedir/lisp $sharedir/leim -name "*.elc" -print | sed 's|\(.*\)\.elc$|/bin/rm -f \1.el|' | /bin/sh -s | 302 | find $sharedir/lisp $sharedir/leim -name "*.elc" -print | sed 's|\(.*\)\.elc$|/bin/rm -f \1.el|' | /bin/sh -s |
| 299 | fi | 303 | fi |
| 300 | 304 | ||
| 305 | if test "$compressed_dist" == "yes" -a "$full_dist" == "yes"; then | ||
| 306 | echo "Compressing .el files" | ||
| 307 | sharedir=$installprefix/share/emacs/$version | ||
| 308 | find $sharedir/lisp $sharedir/leim -name "*.elc" -print | sed 's|\(.*\)\.elc$|/usr/bin/gzip -9 \1.el|' | /bin/sh -s | ||
| 309 | echo "Compressing info files" | ||
| 310 | find $installprefix/info -type f ! -name dir -print | sed 's|\(.*\)$|/usr/bin/gzip -9 \1|' | /bin/sh -s | ||
| 311 | fi | ||
| 312 | |||
| 301 | if test "$with_app" == "yes"; then | 313 | if test "$with_app" == "yes"; then |
| 302 | echo "Creating Emacs.app application" | 314 | echo "Creating Emacs.app application" |
| 303 | tempappdir=${tempparentfull}${appsdir} | 315 | tempappdir=${tempparentfull}${appsdir} |