aboutsummaryrefslogtreecommitdiffstats
path: root/mac/make-package
diff options
context:
space:
mode:
Diffstat (limited to 'mac/make-package')
-rwxr-xr-xmac/make-package12
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
55self_contained=no 55self_contained=no
56app_symlink=no 56app_symlink=no
57full_dist=yes 57full_dist=yes
58compressed_dist=no
58build_in_place=no 59build_in_place=no
59keep_directory=no 60keep_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
299fi 303fi
300 304
305if 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
311fi
312
301if test "$with_app" == "yes"; then 313if 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}