diff options
| author | Andrew Choi | 2002-12-02 17:25:20 +0000 |
|---|---|---|
| committer | Andrew Choi | 2002-12-02 17:25:20 +0000 |
| commit | c0752905a7d6a707070efae068a079b5cb4eac9c (patch) | |
| tree | e65416bae7bbda2e2ecfd6a3a79e1c17192f1a13 /mac | |
| parent | 72742a999a8b0ea7a67dd2c3c17f89579a2bb102 (diff) | |
| download | emacs-c0752905a7d6a707070efae068a079b5cb4eac9c.tar.gz emacs-c0752905a7d6a707070efae068a079b5cb4eac9c.zip | |
2002-12-02 Andrew Choi <akochoi@shaw.ca>
* make-bin-dist, osx-install: Remove.
* INSTALL: Remove description of make-bin-dist and osx-install.
Diffstat (limited to 'mac')
| -rw-r--r-- | mac/ChangeLog | 6 | ||||
| -rw-r--r-- | mac/INSTALL | 7 | ||||
| -rwxr-xr-x | mac/make-bin-dist | 117 | ||||
| -rwxr-xr-x | mac/osx-install | 97 |
4 files changed, 6 insertions, 221 deletions
diff --git a/mac/ChangeLog b/mac/ChangeLog index cd1588cb899..34e5e3e1520 100644 --- a/mac/ChangeLog +++ b/mac/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2002-12-02 Andrew Choi <akochoi@shaw.ca> | ||
| 2 | |||
| 3 | * make-bin-dist, osx-install: Remove. | ||
| 4 | |||
| 5 | * INSTALL: Remove description of make-bin-dist and osx-install. | ||
| 6 | |||
| 1 | 2002-12-02 Steven Tamm <steventamm@mac.com> | 7 | 2002-12-02 Steven Tamm <steventamm@mac.com> |
| 2 | 8 | ||
| 3 | * make-package (installprefix): Switched copying of .el files | 9 | * make-package (installprefix): Switched copying of .el files |
diff --git a/mac/INSTALL b/mac/INSTALL index 57343cc97e0..98510138932 100644 --- a/mac/INSTALL +++ b/mac/INSTALL | |||
| @@ -79,13 +79,6 @@ vt100|vt100-am|vt100am|dec vt100:\ | |||
| 79 | :sc=\E7:rc=\E8:cs=\E[%i%d;%dr: | 79 | :sc=\E7:rc=\E8:cs=\E[%i%d;%dr: |
| 80 | ----- | 80 | ----- |
| 81 | 81 | ||
| 82 | To build a binary distribution of Emacs for Mac OS X, run the shell | ||
| 83 | script make-bin-dist in the `mac' directory. This will create a file | ||
| 84 | emacs-21.xx.yy-mac-bin.tar.gz. | ||
| 85 | |||
| 86 | To install the binary distribution, untar the file and run the shell | ||
| 87 | script osx-install in its top-level directory. | ||
| 88 | |||
| 89 | To build the `info' files, you need to install the texinfo software. | 82 | To build the `info' files, you need to install the texinfo software. |
| 90 | 83 | ||
| 91 | To install from source, obtain texinfo-4.2.tar.gz from ftp.gnu.org or | 84 | To install from source, obtain texinfo-4.2.tar.gz from ftp.gnu.org or |
diff --git a/mac/make-bin-dist b/mac/make-bin-dist deleted file mode 100755 index 793f15581f7..00000000000 --- a/mac/make-bin-dist +++ /dev/null | |||
| @@ -1,117 +0,0 @@ | |||
| 1 | #!/bin/sh | ||
| 2 | |||
| 3 | #### make-bin-dist: create a binary Emacs distribution tar file for | ||
| 4 | #### Mac OS X. This basically runs a `configure' and `make install' | ||
| 5 | #### into a temporary directory and archives that directory. It also | ||
| 6 | #### places the Emacs application bundle and a installer script in the | ||
| 7 | #### tar file. The installer script is run to set up the XML file for | ||
| 8 | #### setting the environment variables used by Emacs when it is | ||
| 9 | #### started from the Finder. | ||
| 10 | |||
| 11 | # Copyright (C) 2002 Free Software Foundation, Inc. | ||
| 12 | # | ||
| 13 | # This file is part of GNU Emacs. | ||
| 14 | # | ||
| 15 | # GNU Emacs is free software; you can redistribute it and/or modify | ||
| 16 | # it under the terms of the GNU General Public License as published by | ||
| 17 | # the Free Software Foundation; either version 2, or (at your option) | ||
| 18 | # any later version. | ||
| 19 | # | ||
| 20 | # GNU Emacs is distributed in the hope that it will be useful, | ||
| 21 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 22 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 23 | # GNU General Public License for more details. | ||
| 24 | # | ||
| 25 | # You should have received a copy of the GNU General Public License | ||
| 26 | # along with GNU Emacs; see the file COPYING. If not, write to the | ||
| 27 | # Free Software Foundation, Inc., 59 Temple Place - Suite 330, | ||
| 28 | # Boston, MA 02111-1307, USA. | ||
| 29 | |||
| 30 | progname="$0" | ||
| 31 | |||
| 32 | ### Exit if a command fails. | ||
| 33 | #set -e | ||
| 34 | |||
| 35 | ### Print out each line we read, for debugging's sake. | ||
| 36 | set -v | ||
| 37 | |||
| 38 | LANGUAGE=C | ||
| 39 | LC_ALL=C | ||
| 40 | LC_MESSAGES= | ||
| 41 | LANG= | ||
| 42 | export LANGUAGE LC_ALL LC_MESSAGES LANG | ||
| 43 | |||
| 44 | ## Don't restrict access to any files. | ||
| 45 | umask 0 | ||
| 46 | |||
| 47 | ### Make sure we're running in the right place. | ||
| 48 | if [ ! -f Emacs.app/Contents/PkgInfo ]; then | ||
| 49 | echo "${progname}: Can't find \`Emacs.app/Contents/PkgInfo'" >&2 | ||
| 50 | echo "${progname} must be run in the \`mac' directory of the Emacs" >&2 | ||
| 51 | echo "distribution tree. cd to that directory and try again." >&2 | ||
| 52 | exit 1 | ||
| 53 | fi | ||
| 54 | |||
| 55 | ### Check whether file ../lisp/version.el exists. | ||
| 56 | if [ ! -f ../lisp/version.el ]; then | ||
| 57 | echo "${progname}: Can't find \`../lisp/version.el'" >&2 | ||
| 58 | exit 1 | ||
| 59 | fi | ||
| 60 | |||
| 61 | ### Find out which version of Emacs this is. | ||
| 62 | shortversion=`grep 'defconst[ ]*emacs-version' ../lisp/version.el \ | ||
| 63 | | sed -e 's/^.*"\([0-9][0-9]*\.[0-9][0-9]*\).*$/\1/'` | ||
| 64 | version=`grep 'defconst[ ]*emacs-version' ../lisp/version.el \ | ||
| 65 | | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'` | ||
| 66 | if [ ! "${version}" ]; then | ||
| 67 | echo "${progname}: can't find current Emacs version in \`./lisp/version.el'" >&2 | ||
| 68 | exit 1 | ||
| 69 | fi | ||
| 70 | |||
| 71 | echo Version numbers are $version and $shortversion | ||
| 72 | |||
| 73 | ### Make sure we don't already have a directory emacs-${version}. | ||
| 74 | |||
| 75 | emacsname="emacs-${version}${new_extension}" | ||
| 76 | |||
| 77 | if [ -d ${emacsname} ] | ||
| 78 | then | ||
| 79 | echo Directory "${emacsname}" already exists >&2 | ||
| 80 | exit 1 | ||
| 81 | fi | ||
| 82 | |||
| 83 | ### Make sure the subdirectory is available. | ||
| 84 | tempparent="make-bin-dist.tmp.$$" | ||
| 85 | if [ -d ${tempparent} ]; then | ||
| 86 | echo "${progname}: staging directory \`${tempparent}' already exists. | ||
| 87 | Perhaps a previous invocation of \`${progname}' failed to clean up after | ||
| 88 | itself. Check that directories whose names are of the form | ||
| 89 | \`make-dist.tmp.NNNNN' don't contain any important information, remove | ||
| 90 | them, and try again." >&2 | ||
| 91 | exit 1 | ||
| 92 | fi | ||
| 93 | |||
| 94 | tempparentfull="`pwd`/${tempparent}" | ||
| 95 | |||
| 96 | echo Installing into directory ${tempparentfull} >&2 | ||
| 97 | |||
| 98 | (cd ..; ./configure --prefix=${tempparentfull}; make install) | ||
| 99 | |||
| 100 | ### This trap ensures that the staging directory will be cleaned up even | ||
| 101 | ### when the script is interrupted in mid-career. | ||
| 102 | trap "echo 'Interrupted...cleaning up the staging directory'; rm -rf ${tempparent}; exit 1" 1 2 15 | ||
| 103 | |||
| 104 | cp -r Emacs.app ${tempparent} | ||
| 105 | |||
| 106 | cp osx-install ${tempparent} | ||
| 107 | |||
| 108 | echo "Creating tar file" | ||
| 109 | |||
| 110 | mv ${tempparent} ${emacsname} | ||
| 111 | |||
| 112 | tar cvf - ${emacsname} | gzip > ${emacsname}-mac-bin.tar.gz | ||
| 113 | |||
| 114 | echo "Cleaning up the staging directory" | ||
| 115 | rm -rf ${emacsname} | ||
| 116 | |||
| 117 | ### make-bin-dist ends here | ||
diff --git a/mac/osx-install b/mac/osx-install deleted file mode 100755 index 85a3304b334..00000000000 --- a/mac/osx-install +++ /dev/null | |||
| @@ -1,97 +0,0 @@ | |||
| 1 | #!/bin/sh | ||
| 2 | |||
| 3 | #### osx-install: create the file ~/.MacOSX/environment.plist with | ||
| 4 | #### appropriate paths for Emacs to access lisp and bin directories. | ||
| 5 | #### On Mac OS X, this file contains values for environment variables | ||
| 6 | #### seen by Aqua application launched in the Finder. This script | ||
| 7 | #### must be run at the top level of a Mac OS X binary distribution. | ||
| 8 | |||
| 9 | # Copyright (C) 2002 Free Software Foundation, Inc. | ||
| 10 | # | ||
| 11 | # This file is part of GNU Emacs. | ||
| 12 | # | ||
| 13 | # GNU Emacs is free software; you can redistribute it and/or modify | ||
| 14 | # it under the terms of the GNU General Public License as published by | ||
| 15 | # the Free Software Foundation; either version 2, or (at your option) | ||
| 16 | # any later version. | ||
| 17 | # | ||
| 18 | # GNU Emacs is distributed in the hope that it will be useful, | ||
| 19 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 20 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 21 | # GNU General Public License for more details. | ||
| 22 | # | ||
| 23 | # You should have received a copy of the GNU General Public License | ||
| 24 | # along with GNU Emacs; see the file COPYING. If not, write to the | ||
| 25 | # Free Software Foundation, Inc., 59 Temple Place - Suite 330, | ||
| 26 | # Boston, MA 02111-1307, USA. | ||
| 27 | |||
| 28 | progname="$0" | ||
| 29 | |||
| 30 | ### Exit if a command fails. | ||
| 31 | #set -e | ||
| 32 | |||
| 33 | ### Print out each line we read, for debugging's sake. | ||
| 34 | set -v | ||
| 35 | |||
| 36 | LANGUAGE=C | ||
| 37 | LC_ALL=C | ||
| 38 | LC_MESSAGES= | ||
| 39 | LANG= | ||
| 40 | export LANGUAGE LC_ALL LC_MESSAGES LANG | ||
| 41 | |||
| 42 | ## Don't restrict access to any files. | ||
| 43 | umask 0 | ||
| 44 | |||
| 45 | ### Make sure we're running in the right place. | ||
| 46 | if [ ! -d Emacs.app -o ! -d libexec -o ! -d share ]; then | ||
| 47 | echo "${progname} must be run in the top directory of the Emacs" >&2 | ||
| 48 | echo "binary distribution tree for Mac OS. cd to that directory" >&2 | ||
| 49 | echo "and try again." >&2 | ||
| 50 | exit 1 | ||
| 51 | fi | ||
| 52 | |||
| 53 | versionfile=`ls share/emacs/21.*/lisp/version.el` | ||
| 54 | |||
| 55 | ### Find out which version of Emacs this is. | ||
| 56 | shortversion=`grep 'defconst[ ]*emacs-version' ${versionfile} \ | ||
| 57 | | sed -e 's/^.*"\([0-9][0-9]*\.[0-9][0-9]*\).*$/\1/'` | ||
| 58 | version=`grep 'defconst[ ]*emacs-version' ${versionfile} \ | ||
| 59 | | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'` | ||
| 60 | if [ ! "${version}" ]; then | ||
| 61 | echo "${progname}: can't find current Emacs version in \`./lisp/version.el'" >&2 | ||
| 62 | exit 1 | ||
| 63 | fi | ||
| 64 | |||
| 65 | echo Version numbers are $version and $shortversion | ||
| 66 | |||
| 67 | homedir=`ls -d ~` | ||
| 68 | initfile="${homedir}/.MacOSX/environment.plist" | ||
| 69 | |||
| 70 | if [ -f ${initfile} ]; then | ||
| 71 | mv ${initfile} ${initfile}.old | ||
| 72 | fi | ||
| 73 | |||
| 74 | if [ -d ${homedir}/.MacOSX ]; then | ||
| 75 | mkdir ${homedir}/.MacOSX | ||
| 76 | fi | ||
| 77 | |||
| 78 | execpath=`ls -d libexec/emacs/21.*/powerpc-apple-*/` | ||
| 79 | |||
| 80 | echo '<?xml version="1.0" encoding="UTF-8"?>' > ${initfile} | ||
| 81 | echo '<!DOCTYPE plist SYSTEM "file://localhost/System/Library/DTDs/PropertyList.dtd">' >> ${initfile} | ||
| 82 | echo '<plist version="0.9">' >> ${initfile} | ||
| 83 | echo '<dict>' >> ${initfile} | ||
| 84 | echo ' <key>EMACSLOADPATH</key>' >> ${initfile} | ||
| 85 | echo " <string>`pwd`/share/emacs/${version}/lisp/</string>" >> ${initfile} | ||
| 86 | echo ' <key>EMACSPATH</key>' >> ${initfile} | ||
| 87 | echo " <string>`pwd`/${execpath}:`pwd`/bin/</string>" >> ${initfile} | ||
| 88 | echo ' <key>EMACSDATA</key>' >> ${initfile} | ||
| 89 | echo " <string>`pwd`/share/emacs/${version}/etc/</string>" >> ${initfile} | ||
| 90 | echo ' <key>EMACSDOC</key>' >> ${initfile} | ||
| 91 | echo " <string>`pwd`/share/emacs/${version}/etc/</string>" >> ${initfile} | ||
| 92 | echo ' <key>INFOPATH</key>' >> ${initfile} | ||
| 93 | echo " <string>`pwd`/info/</string>" >> ${initfile} | ||
| 94 | echo '</dict>' >> ${initfile} | ||
| 95 | echo '</plist>' >> ${initfile} | ||
| 96 | |||
| 97 | ### osx-install ends here | ||