Skip to content

Instantly share code, notes, and snippets.

@benevolent0505
Last active April 3, 2021 13:24
Show Gist options
  • Save benevolent0505/4ca81277f53138d04b89c1213b62bfa7 to your computer and use it in GitHub Desktop.
Save benevolent0505/4ca81277f53138d04b89c1213b62bfa7 to your computer and use it in GitHub Desktop.
Emacs build on macOS
#!/bin/sh
EMACS_REPOSITORY_PATH="Your Emacs Repository Path"
cd $EMACS_REPOSITORY_PATH
CURRENT_COMMIT_HASH=$(git rev-parse HEAD)
git pull
if [ $(git rev-parse HEAD) eq $EMACS_REPOSITORY_PATH ]
then
echo "Nothing update."
exit 0
else
./autogen.sh
./configure --with-xwidgets
make
make install
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment