# Exit on error:
set -e

wget http://ftpmirror.gnu.org/emacs/emacs-24.4.tar.xz
tar xf emacs-24.4.tar.xz
cd emacs-24.4

./configure \
    --prefix= \
    --without-all \
    --without-x

make install
cd ..
rm -rf emacs-24.4
rm emacs-24.4.tar.xz

exit 0
