comparison mac/make-package @ 66246:d1d490f493a1

Add a --compressed-dist option to compress info files and .el files that have been byte-compiled. It defaults to "no".
author Eli Zaretskii <eliz@gnu.org>
date Thu, 20 Oct 2005 15:49:36 +0000
parents 3723093a21fd
children 067115a6e738 0ca0d9181b5e
comparison
equal deleted inserted replaced
66245:9bc5f3573af6 66246:d1d490f493a1
53 with_x=no 53 with_x=no
54 comp_diskimage=no 54 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
61 ac_prev= 62 ac_prev=
62 display_usage=false; 63 display_usage=false;
92 -with-x | --with-x) 93 -with-x | --with-x)
93 with_x=yes 94 with_x=yes
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)
100 app_symlink=yes ;; 103 app_symlink=yes ;;
101 --keep-dir) 104 --keep-dir)
136 --with-x Setup the install to use X Windows for its 139 --with-x Setup the install to use X Windows for its
137 windowed display, instead of carbon. Implies 140 windowed display, instead of carbon. Implies
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}
144 --self-contained Create an Emacs.app that is self-contained; 148 --self-contained Create an Emacs.app that is self-contained;
145 prefix will be ignored and all files installed 149 prefix will be ignored and all files installed
296 echo "Removing unneeded .el files" 300 echo "Removing unneeded .el files"
297 sharedir=$installprefix/share/emacs/$version 301 sharedir=$installprefix/share/emacs/$version
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}
304 tempemapp=${tempappdir}/${emapp}/Contents/MacOS/Emacs 316 tempemapp=${tempappdir}/${emapp}/Contents/MacOS/Emacs
305 ## Delete any CVS files 317 ## Delete any CVS files