Skip to content

Instantly share code, notes, and snippets.

@takaxp
Last active September 24, 2019 15:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save takaxp/49dc14c3da3e293a1f458095a2585d34 to your computer and use it in GitHub Desktop.
Save takaxp/49dc14c3da3e293a1f458095a2585d34 to your computer and use it in GitHub Desktop.
Build script for NS build with inline-patch in macOS Mojave (26.1.50, googleime) (see also https://qiita.com/takaxp/items/e07bb286d80fa9dd8e05)
#!/bin/sh
cd ~/Desktop
git clone git://git.sv.gnu.org/emacs.git
curl -LO https://gist.githubusercontent.com/takaxp/5294b6c52782d0be0b25342be62e4a77/raw/9c9325288ff03a50ee26e4e32c8ca57c0dd81ace/emacs-25.2-inline-googleime.patch
# curl -LO https://gist.githubusercontent.com/takaxp/01ff965361d70de93e9aba3795193cc7/raw/4265d48c13f33a2046669086756c85a2bb83c318/ns-private.patch
cd emacs
# git reset --hard 6217746dd6
git checkout -b emacs-26
git reset --hard 9ad0f1d15c
patch -p1 < ../emacs-25.2-inline-googleime.patch
# patch -p1 < ../ns-private.patch
sleep 5
./autogen.sh
./configure CC=clang --without-x --with-ns --with-modules
# ./configure CC=clang --with-xwidgets --with-modules --with-imagemagick
make bootstrap -j1
make install -j1
cd ./nextstep
open .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment