summaryrefslogtreecommitdiff
path: root/mac
diff options
context:
space:
mode:
authorSteven Tamm <steventamm@mac.com>2002-10-07 20:36:24 +0000
committerSteven Tamm <steventamm@mac.com>2002-10-07 20:36:24 +0000
commit0899a31c65e6dfcef52027133c174c06b7c62262 (patch)
treee2013b3d5e25a4fe834ef784b993a3b84d8d115f /mac
parent3b3911f7a9bf4db29dab8cb1f9fa022537af1109 (diff)
downloademacs-0899a31c65e6dfcef52027133c174c06b7c62262.tar.gz
make-package: Now calls make bootstrap if .elc files are missing
Diffstat (limited to 'mac')
-rw-r--r--mac/ChangeLog4
-rwxr-xr-xmac/make-package16
2 files changed, 18 insertions, 2 deletions
diff --git a/mac/ChangeLog b/mac/ChangeLog
index aeac7d8f7bf..36548cce103 100644
--- a/mac/ChangeLog
+++ b/mac/ChangeLog
@@ -1,3 +1,7 @@
+2002-10-07 Steven Tamm <steventamm@mac.com>
+
+ * make-package: Now calls make bootstrap if .elc files are missing
+
2002-08-27 Andrew Choi <akochoi@shaw.ca>
* INSTALL: Add information on starting Emacs as a GUI application
diff --git a/mac/make-package b/mac/make-package
index e4c228ee97c..d3eae56a070 100755
--- a/mac/make-package
+++ b/mac/make-package
@@ -62,7 +62,7 @@ do
ac_prev=prefix ;;
-p=* | -prefix=* | --p=* | --prefix=*)
prefix=`expr "x$1" : 'x[^=]*=\(.*\)'` ;;
- -no-configure | -no-conf | --no-configure | --no-conf)
+ -no-configure | -no-conf | --no-configure | --no-conf | --without-config)
with_config=no ;;
-with-x | --with-x)
config_options= ;;
@@ -174,7 +174,19 @@ if test "$with_config" = yes; then
(cd ..; ./configure ${config_options} --prefix=${prefix};)
fi
-(cd ..; make install prefix=${tempparentfull}${prefix})
+## Make bootstrap if .elc files are missing from distribution
+if [ ! -f ../lisp/abbrev.elc ]; then
+ echo "Required .elc files missing; making bootstrap..."
+ if ! (cd ..; make bootstrap prefix=${tempparentfull}${prefix}); then
+ echo "Make bootstrap failed... Aborting make-package."
+ exit 2
+ fi
+fi
+
+if ! (cd ..; make install prefix=${tempparentfull}${prefix}); then
+ echo "Make failed... Aborting make-package."
+ exit 1
+fi
### This trap ensures that the staging directory will be cleaned up even
### when the script is interrupted in mid-career.