Skip to content

Instantly share code, notes, and snippets.

@masfj
Created May 28, 2018 16:45
Show Gist options
  • Save masfj/5052c7face3d55bc2af48be8160809fd to your computer and use it in GitHub Desktop.
Save masfj/5052c7face3d55bc2af48be8160809fd to your computer and use it in GitHub Desktop.
Emacs26.1 build
#!/bin/bash
EMACS_VERSION=26.1
RC_VERSION=-rc1
PATCH_VERSION=6.90
curl -O http://ftp.gnu.org/pub/gnu/emacs/emacs-${EMACS_VERSION}.tar.gz
curl -O ftp://ftp.math.s.chiba-u.ac.jp/emacs/emacs-${EMACS_VERSION}${RC_VERSION}-mac-${PATCH_VERSION}.tar.gz
tar zxvf emacs-${EMACS_VERSION}.tar.gz
tar zxvf emacs-${EMACS_VERSION}${RC_VERSION}-mac-${PATCH_VERSION}.tar.gz
cd emacs-${EMACS_VERSION}
patch -p 1 < ../emacs-${EMACS_VERSION}${RC_VERSION}-mac-${PATCH_VERSION}/patch-mac
cp -r ../emacs-${EMACS_VERSION}${RC_VERSION}-mac-${PATCH_VERSION}/mac mac
cp ../emacs-${EMACS_VERSION}${RC_VERSION}-mac-${PATCH_VERSION}/src/* src
cp ../emacs-${EMACS_VERSION}${RC_VERSION}-mac-${PATCH_VERSION}/lisp/term/mac-win.el lisp/term
cp nextstep/Cocoa/Emacs.base/Contents/Resources/Emacs.icns mac/Emacs.app/Contents/Resources/Emacs.icns
./configure --with-mac --with-modules --without-x
make -j16
sudo make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment