Skip to content

Instantly share code, notes, and snippets.

@declank
Created November 20, 2014 05:29
Show Gist options
  • Save declank/9f3ca0c9fe82a1df63a6 to your computer and use it in GitHub Desktop.
Save declank/9f3ca0c9fe82a1df63a6 to your computer and use it in GitHub Desktop.
(For Debian distributions with deb-src added) Download, setup and build Emacs from Savannah.
#!/usr/bin/sh
$INITAL_PWD= #todo
# Install binary and source dependencies
sudo apt-get install build-essential checkinstall git-core ccache
sudo apt-get build-dep emacs24
# Install git-merge-changelog
git clone --depth 1 git://git.savannah.gnu.org/gnulib.git
$GNULIB_DIR #TODO
cd $GNULIB_DIR
./gnulib-tool --create-testdir --dir=/tmp/gmerge git-merge-changelog
cd /tmp/gmerge
./configure
make
sudo make -j 8 install
# Remove git-merge-changelog sources
rm -rf $GNULIB_DIR
# Grab Emacs
cd $INITIAL_PWD
git clone --depth 1 git://git.sv.gnu.org/emacs.git
cd emacs
# Make changes to gitconfig and gitattributes locally
# Build Emacs
./autogen.sh
# TODO Detect if GCC 4.8 or later
echo "[$0] Detecting if GCC 4.8 or later is present..."
./autogen.sh
./configure CFLAGS='$CFLAGS'
make -j 8
cd src
echo "[$0] Done! Run gdb -tui --args emacs -Q to start debugging Emacs..."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment