Skip to content
This repository
Newer
Older
100755 40 lines (35 sloc) 1.208 kb
820c9fa7 »
2011-04-07 add build-emacs.app.sh
1 #!/bin/sh
2
3 # Usage:
4 # 1. cp build-emacs.app.sh to the top directory of emacs source tree.
5 # 2. run "./build-emacs.app.sh"
6 # 3. That's all.
7
8 installprefix=`pwd`/build
9 app_dir=$installprefix/Emacs.app/Contents/Resources
97f5d439 »
2012-04-02 update to emacs 24.0.95 with mac 2.91
10 # this may not works since emacs 24*
479bbfd6 »
2012-03-10 update to emacs 24.0.94 with mac 2.90
11 # version=`grep 'defconst[ ]*emacs-version' ./lisp/version.el \
12 # | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
09d48777 »
2013-03-08 update version
13 version=24.3
820c9fa7 »
2011-04-07 add build-emacs.app.sh
14 compver=x86_64-apple-darwin`uname -r`
15
16 # make an emacs bundle
6c12dc36 »
2013-03-08 Emacs 24.3-rc1 with emacs-24.3-rc1-mac-3.94
17 find . -name *.elc | xargs rm
09d48777 »
2013-03-08 update version
18 rm -rf $installprefix
820c9fa7 »
2011-04-07 add build-emacs.app.sh
19 mkdir $installprefix
ca9f14f9 »
2012-08-27 Emacs 24.2 with emacs-24.2-mac-3.2
20 set -e
820c9fa7 »
2011-04-07 add build-emacs.app.sh
21 ./configure --with-mac --enable-mac-app=$installprefix --prefix=$installprefix
22 make
23 make install
ca9f14f9 »
2012-08-27 Emacs 24.2 with emacs-24.2-mac-3.2
24 set +e
820c9fa7 »
2011-04-07 add build-emacs.app.sh
25
26 mv $installprefix/share/emacs/$version/* $app_dir
27 mv $installprefix/share/info $app_dir
28 mv $installprefix/share/man $app_dir
29 rm -rf $installprefix/share
30 mv $installprefix/var $app_dir
31 mv $installprefix/bin $app_dir/../MacOS/bin
42e740bc »
2011-04-07 add build-emacs.app.sh
32 # mkdir $app_dir/../MacOS/libexec
820c9fa7 »
2011-04-07 add build-emacs.app.sh
33 mv $installprefix/libexec/emacs/$version/$compver $app_dir/../MacOS/libexec
34 rm -rf $installprefix/libexec
35 # Make the application binary a hard link
6c12dc36 »
2013-03-08 Emacs 24.3-rc1 with emacs-24.3-rc1-mac-3.94
36 # no longer necessary issue#17
37 # rm $app_dir/../MacOS/Emacs
38 # ln $app_dir/../MacOS/bin/emacs $app_dir/../MacOS/Emacs
820c9fa7 »
2011-04-07 add build-emacs.app.sh
39
60cb244e »
2011-04-08 tiny mod
40 echo 'Done! Find your Emacs.app at '$installprefix'.'
820c9fa7 »
2011-04-07 add build-emacs.app.sh
41
Something went wrong with that request. Please try again.