annotate mac/make-package @ 48605:a3fe4bde49d3

Removing unnecessary symlink from emacs -> emacs-version
author Steven Tamm <steventamm@mac.com>
date Sat, 30 Nov 2002 23:43:51 +0000
parents ac86b769c135
children d78591287910
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
46177
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
1 #!/bin/sh
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
2
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
3 #### make-package: create a Mac OS X package for use by the installer.
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
4 #### The installer will place the Emacs OSX application in
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
5 #### /Application/Emacs and the rest of emacs in the usual unix places
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
6 #### under /usr/local or some other location if specified as the first
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
7 #### argument. The disc image will be in the file EmacsInstaller.dmg.
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
8 ####
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
9 #### Upon installation, this will leave two versions of emacs on the
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
10 #### computer, 20.7 and 21.1.
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
11 ####
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
12 #### Examples:
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
13 #### ./make-package
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
14 #### Will create an installer that will place the emacs support
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
15 #### files inside /usr/local.
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
16 #### ./make-package /usr
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
17 #### Will create an installer that will place the emacs support
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
18 #### files inside /usr. This will replace the default version of
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
19 #### emacs included with Mac OS X.
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
20
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
21 # Copyright (C) 2002 Free Software Foundation, Inc.
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
22 #
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
23 # This file is part of GNU Emacs.
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
24 #
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
25 # GNU Emacs is free software; you can redistribute it and/or modify
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
26 # it under the terms of the GNU General Public License as published by
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
27 # the Free Software Foundation; either version 2, or (at your option)
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
28 # any later version.
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
29 #
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
30 # GNU Emacs is distributed in the hope that it will be useful,
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
31 # but WITHOUT ANY WARRANTY; without even the implied warranty of
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
32 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
33 # GNU General Public License for more details.
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
34 #
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
35 # You should have received a copy of the GNU General Public License
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
36 # along with GNU Emacs; see the file COPYING. If not, write to the
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
37 # Free Software Foundation, Inc., 59 Temple Place - Suite 330,
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
38 # Boston, MA 02111-1307, USA.
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
39 #
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
40 # Contributed by Steven Tamm (steventamm@mac.com).
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
41
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
42 progname="$0"
48603
ac86b769c135 Added a lot of options to reduce disk size of both the installer and the final
Steven Tamm <steventamm@mac.com>
parents: 47876
diff changeset
43
ac86b769c135 Added a lot of options to reduce disk size of both the installer and the final
Steven Tamm <steventamm@mac.com>
parents: 47876
diff changeset
44 srcdir="`pwd`/.."
ac86b769c135 Added a lot of options to reduce disk size of both the installer and the final
Steven Tamm <steventamm@mac.com>
parents: 47876
diff changeset
45 builddir=..
46183
24320eec547a 2002-07-05 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents: 46177
diff changeset
46
48603
ac86b769c135 Added a lot of options to reduce disk size of both the installer and the final
Steven Tamm <steventamm@mac.com>
parents: 47876
diff changeset
47 ## Default location to place it is /usr/local
46177
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
48 prefix=/usr/local
48603
ac86b769c135 Added a lot of options to reduce disk size of both the installer and the final
Steven Tamm <steventamm@mac.com>
parents: 47876
diff changeset
49 appsdir=/Applications
ac86b769c135 Added a lot of options to reduce disk size of both the installer and the final
Steven Tamm <steventamm@mac.com>
parents: 47876
diff changeset
50 emapp=Emacs.app
46183
24320eec547a 2002-07-05 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents: 46177
diff changeset
51 with_config=yes
47808
5db3fc34243e * make-package: Added ability to pass command line options
Steven Tamm <steventamm@mac.com>
parents: 47782
diff changeset
52 with_app=yes
5db3fc34243e * make-package: Added ability to pass command line options
Steven Tamm <steventamm@mac.com>
parents: 47782
diff changeset
53 with_x=no
48603
ac86b769c135 Added a lot of options to reduce disk size of both the installer and the final
Steven Tamm <steventamm@mac.com>
parents: 47876
diff changeset
54 comp_diskimage=yes
ac86b769c135 Added a lot of options to reduce disk size of both the installer and the final
Steven Tamm <steventamm@mac.com>
parents: 47876
diff changeset
55 self_contained=no
ac86b769c135 Added a lot of options to reduce disk size of both the installer and the final
Steven Tamm <steventamm@mac.com>
parents: 47876
diff changeset
56 app_symlink=no
ac86b769c135 Added a lot of options to reduce disk size of both the installer and the final
Steven Tamm <steventamm@mac.com>
parents: 47876
diff changeset
57 full_dist=no
ac86b769c135 Added a lot of options to reduce disk size of both the installer and the final
Steven Tamm <steventamm@mac.com>
parents: 47876
diff changeset
58 keep_directory=no
46183
24320eec547a 2002-07-05 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents: 46177
diff changeset
59
24320eec547a 2002-07-05 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents: 46177
diff changeset
60 ac_prev=
24320eec547a 2002-07-05 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents: 46177
diff changeset
61 display_usage=false;
47808
5db3fc34243e * make-package: Added ability to pass command line options
Steven Tamm <steventamm@mac.com>
parents: 47782
diff changeset
62 config_options=;
46183
24320eec547a 2002-07-05 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents: 46177
diff changeset
63 while test $# != 0
24320eec547a 2002-07-05 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents: 46177
diff changeset
64 do
24320eec547a 2002-07-05 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents: 46177
diff changeset
65 if test -n "$ac_prev"; then
24320eec547a 2002-07-05 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents: 46177
diff changeset
66 eval "$ac_prev=\$1"
24320eec547a 2002-07-05 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents: 46177
diff changeset
67 ac_prev=
24320eec547a 2002-07-05 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents: 46177
diff changeset
68 continue
24320eec547a 2002-07-05 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents: 46177
diff changeset
69 fi
24320eec547a 2002-07-05 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents: 46177
diff changeset
70 case $1 in
24320eec547a 2002-07-05 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents: 46177
diff changeset
71 -help | --help | --hel | --he | -h)
24320eec547a 2002-07-05 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents: 46177
diff changeset
72 display_usage=yes ;;
24320eec547a 2002-07-05 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents: 46177
diff changeset
73 -p | -prefix | --p | --prefix)
24320eec547a 2002-07-05 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents: 46177
diff changeset
74 ac_prev=prefix ;;
24320eec547a 2002-07-05 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents: 46177
diff changeset
75 -p=* | -prefix=* | --p=* | --prefix=*)
24320eec547a 2002-07-05 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents: 46177
diff changeset
76 prefix=`expr "x$1" : 'x[^=]*=\(.*\)'` ;;
47782
de56ca3f523d make-package: Now calls make bootstrap if .elc files are missing
Steven Tamm <steventamm@mac.com>
parents: 46297
diff changeset
77 -no-configure | -no-conf | --no-configure | --no-conf | --without-config)
46183
24320eec547a 2002-07-05 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents: 46177
diff changeset
78 with_config=no ;;
47808
5db3fc34243e * make-package: Added ability to pass command line options
Steven Tamm <steventamm@mac.com>
parents: 47782
diff changeset
79 -no-app | --no-app | -without-app | --without-app)
5db3fc34243e * make-package: Added ability to pass command line options
Steven Tamm <steventamm@mac.com>
parents: 47782
diff changeset
80 with_app=no ;;
5db3fc34243e * make-package: Added ability to pass command line options
Steven Tamm <steventamm@mac.com>
parents: 47782
diff changeset
81 -without-x | --without-x)
5db3fc34243e * make-package: Added ability to pass command line options
Steven Tamm <steventamm@mac.com>
parents: 47782
diff changeset
82 with_x=no ;;
46183
24320eec547a 2002-07-05 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents: 46177
diff changeset
83 -with-x | --with-x)
47808
5db3fc34243e * make-package: Added ability to pass command line options
Steven Tamm <steventamm@mac.com>
parents: 47782
diff changeset
84 with_x=yes
5db3fc34243e * make-package: Added ability to pass command line options
Steven Tamm <steventamm@mac.com>
parents: 47782
diff changeset
85 with_app=no ;;
48603
ac86b769c135 Added a lot of options to reduce disk size of both the installer and the final
Steven Tamm <steventamm@mac.com>
parents: 47876
diff changeset
86 --with-full-dist | -with-full-dist | -full-dist | -full)
ac86b769c135 Added a lot of options to reduce disk size of both the installer and the final
Steven Tamm <steventamm@mac.com>
parents: 47876
diff changeset
87 full_dist=yes ;;
ac86b769c135 Added a lot of options to reduce disk size of both the installer and the final
Steven Tamm <steventamm@mac.com>
parents: 47876
diff changeset
88 -self-contained | --with-self-contained-app | -sc)
ac86b769c135 Added a lot of options to reduce disk size of both the installer and the final
Steven Tamm <steventamm@mac.com>
parents: 47876
diff changeset
89 self_contained=yes ;;
ac86b769c135 Added a lot of options to reduce disk size of both the installer and the final
Steven Tamm <steventamm@mac.com>
parents: 47876
diff changeset
90 -app-symlink | --app-symlink | -symlink | --symlink | --asl)
ac86b769c135 Added a lot of options to reduce disk size of both the installer and the final
Steven Tamm <steventamm@mac.com>
parents: 47876
diff changeset
91 app_symlink=yes ;;
ac86b769c135 Added a lot of options to reduce disk size of both the installer and the final
Steven Tamm <steventamm@mac.com>
parents: 47876
diff changeset
92 --keep-dir)
ac86b769c135 Added a lot of options to reduce disk size of both the installer and the final
Steven Tamm <steventamm@mac.com>
parents: 47876
diff changeset
93 keep_directory=yes ;;
47808
5db3fc34243e * make-package: Added ability to pass command line options
Steven Tamm <steventamm@mac.com>
parents: 47782
diff changeset
94 -C,* | -c,*)
5db3fc34243e * make-package: Added ability to pass command line options
Steven Tamm <steventamm@mac.com>
parents: 47782
diff changeset
95 config_options="$config_options `expr "x$1" : 'x[^,]*,\(.*\)'`" ;;
5db3fc34243e * make-package: Added ability to pass command line options
Steven Tamm <steventamm@mac.com>
parents: 47782
diff changeset
96 -M,* | -m,*)
5db3fc34243e * make-package: Added ability to pass command line options
Steven Tamm <steventamm@mac.com>
parents: 47782
diff changeset
97 make_options="$make_options `expr "x$1" : 'x[^,]*,\(.*\)'`" ;;
5db3fc34243e * make-package: Added ability to pass command line options
Steven Tamm <steventamm@mac.com>
parents: 47782
diff changeset
98
46183
24320eec547a 2002-07-05 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents: 46177
diff changeset
99 esac
24320eec547a 2002-07-05 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents: 46177
diff changeset
100 shift
24320eec547a 2002-07-05 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents: 46177
diff changeset
101 done
24320eec547a 2002-07-05 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents: 46177
diff changeset
102
47808
5db3fc34243e * make-package: Added ability to pass command line options
Steven Tamm <steventamm@mac.com>
parents: 47782
diff changeset
103 if test "$with_x" = "no"; then
5db3fc34243e * make-package: Added ability to pass command line options
Steven Tamm <steventamm@mac.com>
parents: 47782
diff changeset
104 config_options="--without-x $config_options"
5db3fc34243e * make-package: Added ability to pass command line options
Steven Tamm <steventamm@mac.com>
parents: 47782
diff changeset
105 fi
5db3fc34243e * make-package: Added ability to pass command line options
Steven Tamm <steventamm@mac.com>
parents: 47782
diff changeset
106
46183
24320eec547a 2002-07-05 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents: 46177
diff changeset
107 if test "$display_usage" = "yes"; then
24320eec547a 2002-07-05 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents: 46177
diff changeset
108 cat <<EOF
47808
5db3fc34243e * make-package: Added ability to pass command line options
Steven Tamm <steventamm@mac.com>
parents: 47782
diff changeset
109 \`make-package' generates a Mac OS X installer package from an Emacs
5db3fc34243e * make-package: Added ability to pass command line options
Steven Tamm <steventamm@mac.com>
parents: 47782
diff changeset
110 distribution. By default, this first runs ./configure on the emacs
5db3fc34243e * make-package: Added ability to pass command line options
Steven Tamm <steventamm@mac.com>
parents: 47782
diff changeset
111 directory. Then make install to create the emacs distribution.
5db3fc34243e * make-package: Added ability to pass command line options
Steven Tamm <steventamm@mac.com>
parents: 47782
diff changeset
112 Then some mac-specific commands to generate the required information
5db3fc34243e * make-package: Added ability to pass command line options
Steven Tamm <steventamm@mac.com>
parents: 47782
diff changeset
113 for the mac package. The installer will, by default, create a
48603
ac86b769c135 Added a lot of options to reduce disk size of both the installer and the final
Steven Tamm <steventamm@mac.com>
parents: 47876
diff changeset
114 Carbon application called Emacs in the ${appsdir} directory, with the
ac86b769c135 Added a lot of options to reduce disk size of both the installer and the final
Steven Tamm <steventamm@mac.com>
parents: 47876
diff changeset
115 shared emacs files in /usr/local
46183
24320eec547a 2002-07-05 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents: 46177
diff changeset
116
24320eec547a 2002-07-05 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents: 46177
diff changeset
117 Usage: $0 [OPTION]
24320eec547a 2002-07-05 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents: 46177
diff changeset
118
24320eec547a 2002-07-05 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents: 46177
diff changeset
119 Options:
24320eec547a 2002-07-05 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents: 46177
diff changeset
120 -h, --help display this help and exit
24320eec547a 2002-07-05 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents: 46177
diff changeset
121 --prefix=DIR Set install location for the Mac OS X package
24320eec547a 2002-07-05 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents: 46177
diff changeset
122 of the emacs related file. By default /usr/local
24320eec547a 2002-07-05 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents: 46177
diff changeset
123 --no-conf Do not run the configure script before running
24320eec547a 2002-07-05 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents: 46177
diff changeset
124 make install.
47808
5db3fc34243e * make-package: Added ability to pass command line options
Steven Tamm <steventamm@mac.com>
parents: 47782
diff changeset
125 --without-app Do not create the Emacs application bundle
46183
24320eec547a 2002-07-05 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents: 46177
diff changeset
126 --with-x Setup the install to use X Windows for its
47808
5db3fc34243e * make-package: Added ability to pass command line options
Steven Tamm <steventamm@mac.com>
parents: 47782
diff changeset
127 windowed display, instead of carbon. Implies
5db3fc34243e * make-package: Added ability to pass command line options
Steven Tamm <steventamm@mac.com>
parents: 47782
diff changeset
128 --without-app.
48603
ac86b769c135 Added a lot of options to reduce disk size of both the installer and the final
Steven Tamm <steventamm@mac.com>
parents: 47876
diff changeset
129 --with-full-dist Include all the .el files in the distribution.
ac86b769c135 Added a lot of options to reduce disk size of both the installer and the final
Steven Tamm <steventamm@mac.com>
parents: 47876
diff changeset
130 Default is to include only .elc files
ac86b769c135 Added a lot of options to reduce disk size of both the installer and the final
Steven Tamm <steventamm@mac.com>
parents: 47876
diff changeset
131 --app-symlink Have the Emacs.app executable be a symlink
ac86b769c135 Added a lot of options to reduce disk size of both the installer and the final
Steven Tamm <steventamm@mac.com>
parents: 47876
diff changeset
132 to the install in [prefix]/bin/emacs and have
ac86b769c135 Added a lot of options to reduce disk size of both the installer and the final
Steven Tamm <steventamm@mac.com>
parents: 47876
diff changeset
133 the emacs executable link to emacs-${version}
ac86b769c135 Added a lot of options to reduce disk size of both the installer and the final
Steven Tamm <steventamm@mac.com>
parents: 47876
diff changeset
134 --self-contained Create an Emacs.app that is self-contained;
ac86b769c135 Added a lot of options to reduce disk size of both the installer and the final
Steven Tamm <steventamm@mac.com>
parents: 47876
diff changeset
135 prefix will be ignored and all files installed
ac86b769c135 Added a lot of options to reduce disk size of both the installer and the final
Steven Tamm <steventamm@mac.com>
parents: 47876
diff changeset
136 inside the application
47808
5db3fc34243e * make-package: Added ability to pass command line options
Steven Tamm <steventamm@mac.com>
parents: 47782
diff changeset
137 -C,option Pass option to configure
5db3fc34243e * make-package: Added ability to pass command line options
Steven Tamm <steventamm@mac.com>
parents: 47782
diff changeset
138 -M,option Pass option to make
46183
24320eec547a 2002-07-05 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents: 46177
diff changeset
139 EOF
24320eec547a 2002-07-05 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents: 46177
diff changeset
140 exit 0
46177
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
141 fi
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
142
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
143 ### Exit if a command fails.
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
144 #set -e
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
145
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
146 ### Print out each line we read, for debugging's sake.
48603
ac86b769c135 Added a lot of options to reduce disk size of both the installer and the final
Steven Tamm <steventamm@mac.com>
parents: 47876
diff changeset
147 #set -v
46177
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
148
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
149 LANGUAGE=C
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
150 LC_ALL=C
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
151 LC_MESSAGES=
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
152 LANG=
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
153 export LANGUAGE LC_ALL LC_MESSAGES LANG
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
154
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
155 ## Don't restrict access to any files.
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
156 umask 0
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
157
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
158 ### Make sure we're running in the right place.
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
159 if [ -f Emacs.pkg ]; then
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
160 echo "${progname}: Package Emacs.pkg already exists.
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
161 Perhaps a previous invocation of \`${progname}' failed to clean up after
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
162 itself. Move or delete Emacs.pkg and try again." >&2
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
163 exit 1
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
164 fi
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
165
48603
ac86b769c135 Added a lot of options to reduce disk size of both the installer and the final
Steven Tamm <steventamm@mac.com>
parents: 47876
diff changeset
166 if test $with_app == "yes" && [ ! -f ${emapp}/Contents/PkgInfo ]; then
ac86b769c135 Added a lot of options to reduce disk size of both the installer and the final
Steven Tamm <steventamm@mac.com>
parents: 47876
diff changeset
167 echo "${progname}: Can't find \`${emapp}/Contents/PkgInfo'" >&2
46177
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
168 echo "${progname} must be run in the \`mac' directory of the Emacs" >&2
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
169 echo "distribution tree. cd to that directory and try again." >&2
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
170 exit 1
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
171 fi
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
172
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
173 ### Check whether file ../lisp/version.el exists.
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
174 if [ ! -f ../lisp/version.el ]; then
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
175 echo "${progname}: Can't find \`../lisp/version.el'" >&2
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
176 exit 1
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
177 fi
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
178
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
179 ### Find out which version of Emacs this is.
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
180 shortversion=`grep 'defconst[ ]*emacs-version' ../lisp/version.el \
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
181 | sed -e 's/^.*"\([0-9][0-9]*\.[0-9][0-9]*\).*$/\1/'`
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
182 version=`grep 'defconst[ ]*emacs-version' ../lisp/version.el \
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
183 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
184 if [ ! "${version}" ]; then
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
185 echo "${progname}: can't find current Emacs version in \`./lisp/version.el'" >&2
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
186 exit 1
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
187 fi
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
188
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
189 echo Version numbers are $version and $shortversion
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
190
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
191 ### Make sure we don't already have a directory emacs-${version}.
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
192
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
193 emacsname="emacs-${version}${new_extension}"
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
194
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
195 if [ -d ${emacsname} ]
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
196 then
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
197 echo Directory "${emacsname}" already exists >&2
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
198 exit 1
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
199 fi
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
200
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
201 ### Make sure the subdirectory is available.
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
202 tempparent="make-package.tmp.$$"
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
203 if [ -d ${tempparent} ]; then
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
204 echo "${progname}: staging directory \`${tempparent}' already exists.
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
205 Perhaps a previous invocation of \`${progname}' failed to clean up after
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
206 itself. Check that directories whose names are of the form
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
207 \`make-dist.tmp.NNNNN' don't contain any important information, remove
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
208 them, and try again." >&2
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
209 exit 1
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
210 fi
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
211
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
212 if [ -d /Volumes/Emacs ]; then
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
213 echo "${progname}: Already have an Emacs disc image mounted. Please
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
214 eject that disc image and try again." >&2
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
215 exit 1
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
216 fi
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
217
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
218 tempparentfull="`pwd`/${tempparent}"
48603
ac86b769c135 Added a lot of options to reduce disk size of both the installer and the final
Steven Tamm <steventamm@mac.com>
parents: 47876
diff changeset
219 tempparentdist=${tempparentfull}/dist
46177
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
220
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
221 echo Installing into directory ${tempparentfull} >&2
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
222
48603
ac86b769c135 Added a lot of options to reduce disk size of both the installer and the final
Steven Tamm <steventamm@mac.com>
parents: 47876
diff changeset
223 # Run configure in the new tempparent directory
ac86b769c135 Added a lot of options to reduce disk size of both the installer and the final
Steven Tamm <steventamm@mac.com>
parents: 47876
diff changeset
224 if test "$with_config" = "yes"; then
ac86b769c135 Added a lot of options to reduce disk size of both the installer and the final
Steven Tamm <steventamm@mac.com>
parents: 47876
diff changeset
225 (cd ..; ./configure ${config_options} --prefix=${prefix})
46183
24320eec547a 2002-07-05 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents: 46177
diff changeset
226 fi
24320eec547a 2002-07-05 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents: 46177
diff changeset
227
48603
ac86b769c135 Added a lot of options to reduce disk size of both the installer and the final
Steven Tamm <steventamm@mac.com>
parents: 47876
diff changeset
228 installprefix=${tempparentfull}${prefix}
ac86b769c135 Added a lot of options to reduce disk size of both the installer and the final
Steven Tamm <steventamm@mac.com>
parents: 47876
diff changeset
229 if test "$self_contained" = "yes"; then
ac86b769c135 Added a lot of options to reduce disk size of both the installer and the final
Steven Tamm <steventamm@mac.com>
parents: 47876
diff changeset
230 # If selfcontained, the local directory is Resources directory
ac86b769c135 Added a lot of options to reduce disk size of both the installer and the final
Steven Tamm <steventamm@mac.com>
parents: 47876
diff changeset
231 installprefix=$tempparentfull/$appsdir/$emapp/Contents/Resources
47782
de56ca3f523d make-package: Now calls make bootstrap if .elc files are missing
Steven Tamm <steventamm@mac.com>
parents: 46297
diff changeset
232 fi
46177
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
233
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
234 ### This trap ensures that the staging directory will be cleaned up even
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
235 ### when the script is interrupted in mid-career.
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
236 trap "echo 'Interrupted...cleaning up the staging directory'; rm -rf ${tempparent}; rm -rf Emacs.pkg; exit 1" 1 2 15
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
237
48603
ac86b769c135 Added a lot of options to reduce disk size of both the installer and the final
Steven Tamm <steventamm@mac.com>
parents: 47876
diff changeset
238 ## Make bootstrap if .elc files are missing from distribution
ac86b769c135 Added a lot of options to reduce disk size of both the installer and the final
Steven Tamm <steventamm@mac.com>
parents: 47876
diff changeset
239 if [ ! -f ../lisp/abbrev.elc ]; then
ac86b769c135 Added a lot of options to reduce disk size of both the installer and the final
Steven Tamm <steventamm@mac.com>
parents: 47876
diff changeset
240 echo "Required .elc files missing; making bootstrap..."
ac86b769c135 Added a lot of options to reduce disk size of both the installer and the final
Steven Tamm <steventamm@mac.com>
parents: 47876
diff changeset
241 if ! (cd ${builddir}; make bootstrap prefix=$installprefix $make_options); then
ac86b769c135 Added a lot of options to reduce disk size of both the installer and the final
Steven Tamm <steventamm@mac.com>
parents: 47876
diff changeset
242 echo "Make bootstrap failed... Aborting make-package."
ac86b769c135 Added a lot of options to reduce disk size of both the installer and the final
Steven Tamm <steventamm@mac.com>
parents: 47876
diff changeset
243 exit 2
ac86b769c135 Added a lot of options to reduce disk size of both the installer and the final
Steven Tamm <steventamm@mac.com>
parents: 47876
diff changeset
244 fi
ac86b769c135 Added a lot of options to reduce disk size of both the installer and the final
Steven Tamm <steventamm@mac.com>
parents: 47876
diff changeset
245 fi
ac86b769c135 Added a lot of options to reduce disk size of both the installer and the final
Steven Tamm <steventamm@mac.com>
parents: 47876
diff changeset
246
ac86b769c135 Added a lot of options to reduce disk size of both the installer and the final
Steven Tamm <steventamm@mac.com>
parents: 47876
diff changeset
247 if ! (cd ${builddir}; make install prefix=$installprefix $make_options); then
ac86b769c135 Added a lot of options to reduce disk size of both the installer and the final
Steven Tamm <steventamm@mac.com>
parents: 47876
diff changeset
248 echo "Make failed... Aborting make-package."
ac86b769c135 Added a lot of options to reduce disk size of both the installer and the final
Steven Tamm <steventamm@mac.com>
parents: 47876
diff changeset
249 exit 1
ac86b769c135 Added a lot of options to reduce disk size of both the installer and the final
Steven Tamm <steventamm@mac.com>
parents: 47876
diff changeset
250 fi
ac86b769c135 Added a lot of options to reduce disk size of both the installer and the final
Steven Tamm <steventamm@mac.com>
parents: 47876
diff changeset
251
ac86b769c135 Added a lot of options to reduce disk size of both the installer and the final
Steven Tamm <steventamm@mac.com>
parents: 47876
diff changeset
252 if test "$full_dist" == "no"; then
ac86b769c135 Added a lot of options to reduce disk size of both the installer and the final
Steven Tamm <steventamm@mac.com>
parents: 47876
diff changeset
253 echo "Removing unneeded .el files"
ac86b769c135 Added a lot of options to reduce disk size of both the installer and the final
Steven Tamm <steventamm@mac.com>
parents: 47876
diff changeset
254 sharedir=$installprefix/share/emacs/$version
ac86b769c135 Added a lot of options to reduce disk size of both the installer and the final
Steven Tamm <steventamm@mac.com>
parents: 47876
diff changeset
255 find $sharedir/lisp $sharedir/leim -name "*.elc" -print | sed 's|\(.*\)\.elc$|/bin/rm -f \1.el|' | /bin/sh -s
ac86b769c135 Added a lot of options to reduce disk size of both the installer and the final
Steven Tamm <steventamm@mac.com>
parents: 47876
diff changeset
256 fi
ac86b769c135 Added a lot of options to reduce disk size of both the installer and the final
Steven Tamm <steventamm@mac.com>
parents: 47876
diff changeset
257
47808
5db3fc34243e * make-package: Added ability to pass command line options
Steven Tamm <steventamm@mac.com>
parents: 47782
diff changeset
258 if test "$with_app" == "yes"; then
48603
ac86b769c135 Added a lot of options to reduce disk size of both the installer and the final
Steven Tamm <steventamm@mac.com>
parents: 47876
diff changeset
259 echo "Creating Emacs.app application"
ac86b769c135 Added a lot of options to reduce disk size of both the installer and the final
Steven Tamm <steventamm@mac.com>
parents: 47876
diff changeset
260 tempappdir=${tempparentfull}${appsdir}
ac86b769c135 Added a lot of options to reduce disk size of both the installer and the final
Steven Tamm <steventamm@mac.com>
parents: 47876
diff changeset
261 mkdir ${tempappdir}
46177
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
262
47808
5db3fc34243e * make-package: Added ability to pass command line options
Steven Tamm <steventamm@mac.com>
parents: 47782
diff changeset
263 ## Copy Emacs application
48603
ac86b769c135 Added a lot of options to reduce disk size of both the installer and the final
Steven Tamm <steventamm@mac.com>
parents: 47876
diff changeset
264 cp -r Emacs.app ${tempappdir}
47808
5db3fc34243e * make-package: Added ability to pass command line options
Steven Tamm <steventamm@mac.com>
parents: 47782
diff changeset
265 ## Delete any CVS files
48603
ac86b769c135 Added a lot of options to reduce disk size of both the installer and the final
Steven Tamm <steventamm@mac.com>
parents: 47876
diff changeset
266 find ${tempappdir} -name "CVS" -type d -execdir rm -rf {} \;
ac86b769c135 Added a lot of options to reduce disk size of both the installer and the final
Steven Tamm <steventamm@mac.com>
parents: 47876
diff changeset
267 ## Have application be a symlink to ${prefix}/bin/emacs
ac86b769c135 Added a lot of options to reduce disk size of both the installer and the final
Steven Tamm <steventamm@mac.com>
parents: 47876
diff changeset
268 if test "$app_symlink" == "yes"; then
ac86b769c135 Added a lot of options to reduce disk size of both the installer and the final
Steven Tamm <steventamm@mac.com>
parents: 47876
diff changeset
269 echo "Creating application symlink"
ac86b769c135 Added a lot of options to reduce disk size of both the installer and the final
Steven Tamm <steventamm@mac.com>
parents: 47876
diff changeset
270 tempemapp=${tempappdir}/${emapp}/Contents/MacOS/Emacs
ac86b769c135 Added a lot of options to reduce disk size of both the installer and the final
Steven Tamm <steventamm@mac.com>
parents: 47876
diff changeset
271 rm ${tempemapp}
ac86b769c135 Added a lot of options to reduce disk size of both the installer and the final
Steven Tamm <steventamm@mac.com>
parents: 47876
diff changeset
272 if test "$self_contained" = "yes"; then
ac86b769c135 Added a lot of options to reduce disk size of both the installer and the final
Steven Tamm <steventamm@mac.com>
parents: 47876
diff changeset
273 ln -s ../../Contents/Resources/bin/${emacsname} ${tempemapp}
ac86b769c135 Added a lot of options to reduce disk size of both the installer and the final
Steven Tamm <steventamm@mac.com>
parents: 47876
diff changeset
274 else
ac86b769c135 Added a lot of options to reduce disk size of both the installer and the final
Steven Tamm <steventamm@mac.com>
parents: 47876
diff changeset
275 ln -s ${prefix}/bin/${emacsname} ${tempemapp}
ac86b769c135 Added a lot of options to reduce disk size of both the installer and the final
Steven Tamm <steventamm@mac.com>
parents: 47876
diff changeset
276 fi
ac86b769c135 Added a lot of options to reduce disk size of both the installer and the final
Steven Tamm <steventamm@mac.com>
parents: 47876
diff changeset
277 fi
47808
5db3fc34243e * make-package: Added ability to pass command line options
Steven Tamm <steventamm@mac.com>
parents: 47782
diff changeset
278 fi
46177
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
279
48603
ac86b769c135 Added a lot of options to reduce disk size of both the installer and the final
Steven Tamm <steventamm@mac.com>
parents: 47876
diff changeset
280 # Remove unnecessary .el files
ac86b769c135 Added a lot of options to reduce disk size of both the installer and the final
Steven Tamm <steventamm@mac.com>
parents: 47876
diff changeset
281 #if test "$full_dist" = no; then
ac86b769c135 Added a lot of options to reduce disk size of both the installer and the final
Steven Tamm <steventamm@mac.com>
parents: 47876
diff changeset
282 #fi
ac86b769c135 Added a lot of options to reduce disk size of both the installer and the final
Steven Tamm <steventamm@mac.com>
parents: 47876
diff changeset
283
46177
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
284 echo "Creating Package Info file"
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
285
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
286 mkdir Emacs.pkg
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
287 mkdir Emacs.pkg/Contents
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
288 mkdir Emacs.pkg/Contents/Resources
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
289 mkdir Emacs.pkg/Contents/Resources/English.lproj
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
290 echo 'pmkrpkg1' > Emacs.pkg/Contents/PkgInfo
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
291
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
292 infofile=Emacs.pkg/Contents/Resources/English.lproj/Emacs.info
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
293
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
294 echo 'Title Emacs' > ${infofile}
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
295 echo "Version ${version}" >> ${infofile}
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
296 echo "Description Install GNU Emacs ${version} as a command-line app and a Mac OS Application" >> ${infofile}
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
297 echo 'DefaultLocation /' >> ${infofile}
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
298 echo 'DeleteWarning' >> ${infofile}
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
299 echo 'NeedsAuthorization YES' >> ${infofile}
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
300 echo 'Required NO' >> ${infofile}
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
301 echo 'Relocatable NO' >> ${infofile}
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
302 echo 'RequiresReboot NO' >> ${infofile}
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
303 echo 'UseUserMask NO' >> ${infofile}
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
304 echo 'OverwritePermissions NO' >> ${infofile}
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
305 echo 'InstallFat NO' >> ${infofile}
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
306
48603
ac86b769c135 Added a lot of options to reduce disk size of both the installer and the final
Steven Tamm <steventamm@mac.com>
parents: 47876
diff changeset
307 ### Set the install directory to install files as root...
ac86b769c135 Added a lot of options to reduce disk size of both the installer and the final
Steven Tamm <steventamm@mac.com>
parents: 47876
diff changeset
308 ### Not sure if this is a good diea
ac86b769c135 Added a lot of options to reduce disk size of both the installer and the final
Steven Tamm <steventamm@mac.com>
parents: 47876
diff changeset
309 # echo "Setting owner to root"
ac86b769c135 Added a lot of options to reduce disk size of both the installer and the final
Steven Tamm <steventamm@mac.com>
parents: 47876
diff changeset
310 # chown -Rh 0 ${tempparentfull}
ac86b769c135 Added a lot of options to reduce disk size of both the installer and the final
Steven Tamm <steventamm@mac.com>
parents: 47876
diff changeset
311
46177
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
312 echo "Creating pax file"
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
313 (cd ${tempparentfull}; pax -w -f ../Emacs.pkg/Contents/Resources/Emacs.pax .; cd ..)
48603
ac86b769c135 Added a lot of options to reduce disk size of both the installer and the final
Steven Tamm <steventamm@mac.com>
parents: 47876
diff changeset
314 echo "Compressing pax file"
ac86b769c135 Added a lot of options to reduce disk size of both the installer and the final
Steven Tamm <steventamm@mac.com>
parents: 47876
diff changeset
315 gzip Emacs.pkg/Contents/Resources/Emacs.pax
46177
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
316
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
317 echo "Creating bom file"
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
318 mkbom ${tempparentfull} Emacs.pkg/Contents/Resources/Emacs.bom
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
319
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
320 echo "Generating sizes file"
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
321 sizesfile=Emacs.pkg/Contents/Resources/Emacs.sizes
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
322
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
323 numFiles=`du -a ${tmpparent} | wc -l`
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
324 installedSize=`du -s ${tmpparent} | cut -f1`
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
325 compressedSize=`du -s Emacs.pkg | cut -f1`
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
326
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
327 echo "NumFiles ${numFiles}" > ${sizesfile}
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
328 echo "InstalledSize ${installedSize}" >> ${sizesfile}
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
329 echo "CompressedSize ${compressedSize}" >> ${sizesfile}
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
330 cat ${sizesfile}
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
331
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
332 mv ${tempparentfull} ${emacsname}
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
333
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
334 echo "Creating Disc Image"
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
335 ## Allocate an extra 5000 sectors (about 2.5 mg)
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
336 ## Note a sector appears to be ~500k
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
337 sectorsAlloced=`echo 2*${compressedSize}+5000|bc`
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
338 hdiutil create -ov EmacsRW -sectors ${sectorsAlloced}
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
339 ## Need to format the disc image before mounting
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
340 mountLoc=`hdid -nomount EmacsRW.dmg | grep HFS | cut -f1`
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
341 /sbin/newfs_hfs -v Emacs ${mountLoc}
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
342 hdiutil eject ${mountLoc}
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
343 echo "Copying Package to Disc Image"
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
344 hdid EmacsRW.dmg
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
345
48603
ac86b769c135 Added a lot of options to reduce disk size of both the installer and the final
Steven Tamm <steventamm@mac.com>
parents: 47876
diff changeset
346 if test "$keep_directory" = "no"; then
ac86b769c135 Added a lot of options to reduce disk size of both the installer and the final
Steven Tamm <steventamm@mac.com>
parents: 47876
diff changeset
347 rm -rf ${emacsname}
ac86b769c135 Added a lot of options to reduce disk size of both the installer and the final
Steven Tamm <steventamm@mac.com>
parents: 47876
diff changeset
348 fi
46177
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
349
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
350 if [ ! -d /Volumes/Emacs ]; then
48603
ac86b769c135 Added a lot of options to reduce disk size of both the installer and the final
Steven Tamm <steventamm@mac.com>
parents: 47876
diff changeset
351 echo "Could not create disc image. The Emacs installer package (Emacs.pkg)
ac86b769c135 Added a lot of options to reduce disk size of both the installer and the final
Steven Tamm <steventamm@mac.com>
parents: 47876
diff changeset
352 in this directory should be correct. Please use the Disc Copy program to
ac86b769c135 Added a lot of options to reduce disk size of both the installer and the final
Steven Tamm <steventamm@mac.com>
parents: 47876
diff changeset
353 create a disc image." >&2
46177
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
354 exit 0
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
355 fi
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
356
46297
e3a0f935c9c5 2002-07-11 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents: 46183
diff changeset
357 cp -R Emacs.pkg /Volumes/Emacs
46177
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
358
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
359 ## Converting Disk Image to read-only
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
360 echo 'Converting Disc Image to read-only'
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
361 hdiutil eject ${mountLoc}
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
362 hdiutil resize EmacsRW.dmg -sectors min
48603
ac86b769c135 Added a lot of options to reduce disk size of both the installer and the final
Steven Tamm <steventamm@mac.com>
parents: 47876
diff changeset
363 if test "$comp_diskimage" = "yes"; then
ac86b769c135 Added a lot of options to reduce disk size of both the installer and the final
Steven Tamm <steventamm@mac.com>
parents: 47876
diff changeset
364 hdiutil convert EmacsRW.dmg -format UDZO -imagekey zlib-level=2 -o EmacsInstaller.dmg
ac86b769c135 Added a lot of options to reduce disk size of both the installer and the final
Steven Tamm <steventamm@mac.com>
parents: 47876
diff changeset
365 else
ac86b769c135 Added a lot of options to reduce disk size of both the installer and the final
Steven Tamm <steventamm@mac.com>
parents: 47876
diff changeset
366 hdiutil convert EmacsRW.dmg -format UDRO -o EmacsInstaller.dmg
ac86b769c135 Added a lot of options to reduce disk size of both the installer and the final
Steven Tamm <steventamm@mac.com>
parents: 47876
diff changeset
367 fi
46177
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
368 rm EmacsRW.dmg
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
369
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
370 echo "Cleaning up the staging directory"
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
371 rm -rf Emacs.pkg
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
372
76bedba7ffd6 2002-07-04 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
diff changeset
373 ### make-package ends here