Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100755 42 lines (35 sloc) 1.211 kb
820c9fa Xin Xu add build-emacs.app.sh
authored
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
97f5d43 Xin Xu update to emacs 24.0.95 with mac 2.91
authored
10 # this may not works since emacs 24*
479bbfd Xin Xu update to emacs 24.0.94 with mac 2.90
authored
11 # version=`grep 'defconst[ ]*emacs-version' ./lisp/version.el \
12 # | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
6c29c6a Xin Xu emacs-24.4.90 with emacs-24.4.90-mac-5.4
authored
13 version=24.4.90
820c9fa Xin Xu add build-emacs.app.sh
authored
14 compver=x86_64-apple-darwin`uname -r`
15
16 # make an emacs bundle
6c12dc3 Xin Xu Emacs 24.3-rc1 with emacs-24.3-rc1-mac-3.94
authored
17 find . -name *.elc | xargs rm
09d4877 Xin Xu update version
authored
18 rm -rf $installprefix
820c9fa Xin Xu add build-emacs.app.sh
authored
19 mkdir $installprefix
ca9f14f Xin Xu Emacs 24.2 with emacs-24.2-mac-3.2
authored
20 set -e
820c9fa Xin Xu add build-emacs.app.sh
authored
21 ./configure --with-mac --enable-mac-app=$installprefix --prefix=$installprefix
22 make
23 make install
ca9f14f Xin Xu Emacs 24.2 with emacs-24.2-mac-3.2
authored
24 set +e
820c9fa Xin Xu add build-emacs.app.sh
authored
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
42e740b Xin Xu add build-emacs.app.sh
authored
32 # mkdir $app_dir/../MacOS/libexec
820c9fa Xin Xu add build-emacs.app.sh
authored
33 mv $installprefix/libexec/emacs/$version/$compver $app_dir/../MacOS/libexec
34 rm -rf $installprefix/libexec
35 # Make the application binary a hard link
6c12dc3 Xin Xu Emacs 24.3-rc1 with emacs-24.3-rc1-mac-3.94
authored
36 # no longer necessary issue#17
37 # rm $app_dir/../MacOS/Emacs
38 # ln $app_dir/../MacOS/bin/emacs $app_dir/../MacOS/Emacs
820c9fa Xin Xu add build-emacs.app.sh
authored
39
60cb244 Xin Xu tiny mod
authored
40 echo 'Done! Find your Emacs.app at '$installprefix'.'
820c9fa Xin Xu add build-emacs.app.sh
authored
41
Something went wrong with that request. Please try again.