Mercurial > emacs
comparison mac/make-package @ 47782:de56ca3f523d
make-package: Now calls make bootstrap if .elc files are missing
author | Steven Tamm <steventamm@mac.com> |
---|---|
date | Mon, 07 Oct 2002 20:36:24 +0000 |
parents | e3a0f935c9c5 |
children | 5db3fc34243e |
comparison
equal
deleted
inserted
replaced
47781:79bdd88fb006 | 47782:de56ca3f523d |
---|---|
60 display_usage=yes ;; | 60 display_usage=yes ;; |
61 -p | -prefix | --p | --prefix) | 61 -p | -prefix | --p | --prefix) |
62 ac_prev=prefix ;; | 62 ac_prev=prefix ;; |
63 -p=* | -prefix=* | --p=* | --prefix=*) | 63 -p=* | -prefix=* | --p=* | --prefix=*) |
64 prefix=`expr "x$1" : 'x[^=]*=\(.*\)'` ;; | 64 prefix=`expr "x$1" : 'x[^=]*=\(.*\)'` ;; |
65 -no-configure | -no-conf | --no-configure | --no-conf) | 65 -no-configure | -no-conf | --no-configure | --no-conf | --without-config) |
66 with_config=no ;; | 66 with_config=no ;; |
67 -with-x | --with-x) | 67 -with-x | --with-x) |
68 config_options= ;; | 68 config_options= ;; |
69 esac | 69 esac |
70 shift | 70 shift |
172 | 172 |
173 if test "$with_config" = yes; then | 173 if test "$with_config" = yes; then |
174 (cd ..; ./configure ${config_options} --prefix=${prefix};) | 174 (cd ..; ./configure ${config_options} --prefix=${prefix};) |
175 fi | 175 fi |
176 | 176 |
177 (cd ..; make install prefix=${tempparentfull}${prefix}) | 177 ## Make bootstrap if .elc files are missing from distribution |
178 if [ ! -f ../lisp/abbrev.elc ]; then | |
179 echo "Required .elc files missing; making bootstrap..." | |
180 if ! (cd ..; make bootstrap prefix=${tempparentfull}${prefix}); then | |
181 echo "Make bootstrap failed... Aborting make-package." | |
182 exit 2 | |
183 fi | |
184 fi | |
185 | |
186 if ! (cd ..; make install prefix=${tempparentfull}${prefix}); then | |
187 echo "Make failed... Aborting make-package." | |
188 exit 1 | |
189 fi | |
178 | 190 |
179 ### This trap ensures that the staging directory will be cleaned up even | 191 ### This trap ensures that the staging directory will be cleaned up even |
180 ### when the script is interrupted in mid-career. | 192 ### when the script is interrupted in mid-career. |
181 trap "echo 'Interrupted...cleaning up the staging directory'; rm -rf ${tempparent}; rm -rf Emacs.pkg; exit 1" 1 2 15 | 193 trap "echo 'Interrupted...cleaning up the staging directory'; rm -rf ${tempparent}; rm -rf Emacs.pkg; exit 1" 1 2 15 |
182 | 194 |