Skip to content

Instantly share code, notes, and snippets.

@erickgnavar
Last active September 3, 2019 15:11
Show Gist options
  • Save erickgnavar/237cd1e117d546a16206e51e3c86d171 to your computer and use it in GitHub Desktop.
Save erickgnavar/237cd1e117d546a16206e51e3c86d171 to your computer and use it in GitHub Desktop.
#!/bin/bash -
#===============================================================================
#
# FILE: build_mac.sh
#
# USAGE: ./build_mac.sh
#
# DESCRIPTION:
#
# OPTIONS: ---
# REQUIREMENTS: ---
# BUGS: ---
# NOTES: ---
# AUTHOR: YOUR NAME (),
# ORGANIZATION:
# CREATED: 06/27/2019 13:09
# REVISION: ---
#===============================================================================
set -o nounset # Treat unset variables as an error
make clean
echo "making sure all the requirements are installed..."
brew install autoconf automake libxml2 texinfo gnutls
echo "Seting up variables..."
export PKG_CONFIG_PATH="`brew --prefix libxml2`/lib/pkgconfig"
export PATH="/usr/local/opt/texinfo/bin:$PATH"
make configure
./configure --with-ns --with-gnutls=ifavailable
make install
echo "Done!"
open -R nextstep/Emacs.app
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment