Skip to content

Instantly share code, notes, and snippets.

@fuyunv
Forked from favadi/build-emacs.sh
Created December 16, 2015 11:30

Revisions

  1. @favadi favadi revised this gist Nov 12, 2015. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions build-emacs.sh
    Original file line number Diff line number Diff line change
    @@ -5,6 +5,8 @@
    # version: 24.5
    # Toolkit: lucid

    # Warning, use updated version of this script in: https://github.com/favadi/build-emacs

    set -e

    readonly version="24.5"
  2. Diep Pham revised this gist Apr 29, 2015. 1 changed file with 5 additions and 4 deletions.
    9 changes: 5 additions & 4 deletions build-emacs.sh
    Original file line number Diff line number Diff line change
    @@ -10,10 +10,11 @@ set -e
    readonly version="24.5"

    # install dependencies
    sudo apt-get install -y stow libx11-dev xaw3dg-dev libjpeg-dev \
    libpng12-dev libgif-dev libtiff4-dev libncurses5-dev libxft-dev \
    librsvg2-dev libmagickcore-dev libmagick++-dev libxml2-dev \
    libgpm-dev libghc-gconf-dev libotf-dev libm17n-dev libgnutls-dev
    sudo apt-get install -y stow build-essential libx11-dev xaw3dg-dev \
    libjpeg-dev libpng12-dev libgif-dev libtiff4-dev libncurses5-dev \
    libxft-dev librsvg2-dev libmagickcore-dev libmagick++-dev \
    libxml2-dev libgpm-dev libghc-gconf-dev libotf-dev libm17n-dev \
    libgnutls-dev

    # download source package
    if [[ ! -d emacs-"$version" ]]; then
  3. Diep Pham revised this gist Apr 26, 2015. 1 changed file with 3 additions and 1 deletion.
    4 changes: 3 additions & 1 deletion build-emacs.sh
    Original file line number Diff line number Diff line change
    @@ -22,9 +22,11 @@ if [[ ! -d emacs-"$version" ]]; then
    fi

    # buil and install
    sudo mkdir /usr/local/stow
    cd emacs-"$version"
    ./configure \
    --with-xft --with-x-toolkit=lucid
    --with-xft \
    --with-x-toolkit=lucid
    make
    sudo make install prefix=/usr/local/stow/emacs-"$version"
    cd /usr/local/stow
  4. Diep Pham created this gist Apr 26, 2015.
    31 changes: 31 additions & 0 deletions build-emacs.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,31 @@
    #!/bin/bash

    # Build latest version of Emacs, version management with stow
    # OS: Ubuntu 14.04 LTS
    # version: 24.5
    # Toolkit: lucid

    set -e

    readonly version="24.5"

    # install dependencies
    sudo apt-get install -y stow libx11-dev xaw3dg-dev libjpeg-dev \
    libpng12-dev libgif-dev libtiff4-dev libncurses5-dev libxft-dev \
    librsvg2-dev libmagickcore-dev libmagick++-dev libxml2-dev \
    libgpm-dev libghc-gconf-dev libotf-dev libm17n-dev libgnutls-dev

    # download source package
    if [[ ! -d emacs-"$version" ]]; then
    wget http://ftp.gnu.org/gnu/emacs/emacs-"$version".tar.xz
    tar xvf emacs-"$version".tar.xz
    fi

    # buil and install
    cd emacs-"$version"
    ./configure \
    --with-xft --with-x-toolkit=lucid
    make
    sudo make install prefix=/usr/local/stow/emacs-"$version"
    cd /usr/local/stow
    sudo stow emacs-"$version"