From 3f34081a9b925b5e0192f7a776376548c498ec60 Mon Sep 17 00:00:00 2001 From: Steven Tamm Date: Wed, 9 Oct 2002 02:20:28 +0000 Subject: [PATCH] * make-package: Added ability to pass command line options through to make and configure (-m, & -c,). Added option to not copy Application into installer, the default for X11 builds. Does not copy CVS directories into installer. Clarified some of the usage notes. --- mac/ChangeLog | 8 ++++++++ mac/make-package | 51 ++++++++++++++++++++++++++++++++++++------------ 2 files changed, 47 insertions(+), 12 deletions(-) diff --git a/mac/ChangeLog b/mac/ChangeLog index 36548cce103..2e044ebbac3 100644 --- a/mac/ChangeLog +++ b/mac/ChangeLog @@ -1,3 +1,11 @@ +2002-10-08 Steven Tamm + + * make-package: Added ability to pass command line options + through to make and configure (-m, & -c,). + Added option to not copy Application into installer, the default + for X11 builds. Does not copy CVS directories into installer. + Clarified some of the usage notes. + 2002-10-07 Steven Tamm * make-package: Now calls make bootstrap if .elc files are missing diff --git a/mac/make-package b/mac/make-package index d3eae56a070..747b8680b98 100755 --- a/mac/make-package +++ b/mac/make-package @@ -44,10 +44,12 @@ progname="$0" prefix=/usr/local with_config=yes +with_app=yes +with_x=no ac_prev= display_usage=false; -config_options=--without-x +config_options=; while test $# != 0 do if test -n "$ac_prev"; then @@ -64,18 +66,34 @@ do prefix=`expr "x$1" : 'x[^=]*=\(.*\)'` ;; -no-configure | -no-conf | --no-configure | --no-conf | --without-config) with_config=no ;; + -no-app | --no-app | -without-app | --without-app) + with_app=no ;; + -without-x | --without-x) + with_x=no ;; -with-x | --with-x) - config_options= ;; + with_x=yes + with_app=no ;; + -C,* | -c,*) + config_options="$config_options `expr "x$1" : 'x[^,]*,\(.*\)'`" ;; + -M,* | -m,*) + make_options="$make_options `expr "x$1" : 'x[^,]*,\(.*\)'`" ;; + esac shift done +if test "$with_x" = "no"; then + config_options="--without-x $config_options" +fi + if test "$display_usage" = "yes"; then cat <&2 exit 1 fi -if [ ! -f Emacs.app/Contents/PkgInfo ]; then +if test $with_app == "yes" && [ ! -f Emacs.app/Contents/PkgInfo ]; then echo "${progname}: Can't find \`Emacs.app/Contents/PkgInfo'" >&2 echo "${progname} must be run in the \`mac' directory of the Emacs" >&2 echo "distribution tree. cd to that directory and try again." >&2 @@ -177,13 +199,13 @@ fi ## 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 + if ! (cd ..; make bootstrap prefix=${tempparentfull}${prefix} $make_options); then echo "Make bootstrap failed... Aborting make-package." exit 2 fi fi -if ! (cd ..; make install prefix=${tempparentfull}${prefix}); then +if ! (cd ..; make install prefix=${tempparentfull}${prefix} $make_options); then echo "Make failed... Aborting make-package." exit 1 fi @@ -192,9 +214,14 @@ fi ### when the script is interrupted in mid-career. trap "echo 'Interrupted...cleaning up the staging directory'; rm -rf ${tempparent}; rm -rf Emacs.pkg; exit 1" 1 2 15 -mkdir ${tempparentfull}/Applications +if test "$with_app" == "yes"; then + mkdir ${tempparentfull}/Applications -cp -r Emacs.app ${tempparentfull}/Applications + ## Copy Emacs application + cp -r Emacs.app ${tempparentfull}/Applications + ## Delete any CVS files + find ${tempparentfull}/Applications -name "CVS" -execdir rm -r {} \; +fi echo "Creating Package Info file" -- 2.39.2