This is part of a small series of postings about linux software being at the bleeding edge, i.e. the active development versions. And we kick off with emacs which went into development freeze on the 23rd December last year, and this is version 24.4.50.xx. This is being written in emacs 24.4.50.2, and two days ago I was using 24.4.50.1 so you can see that it is actively changing.

I have written this script which will download the development version of emacs, builds it, and then installs it in /usr/local/bin. Then you can comment out some of the script lines and use it for further downloads and builds.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#!/bin/bash
set -e
#set -x
#: Title            : ebuild
#: Date             : 1 April 2014
#: Version          : 1.0
#: Description      : To download and build the development build of emacs. 
#: Requirements     : none known
# Copyright (C) 2014, 2015, 2017  Sharon Kimble 
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License along
# with this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
####################################################
log=~/logs/emacsbuild.txt
exec >> (tee -a $log) 2>&1
echo "$(date +%Y-%m-%d\ %H:%M:%S)" >> $log
trap "kill -- -$BASHPID" EXIT

cd ~
#cd ~/git
cd ~/git/trunk
#bzr pull http://bzr.savannah.gnu.org/r/emacs/trunk
bzr pull
./autogen.sh
./configure
export emacs_prefix="/usr/local"
make
sudo make install
cd ~

To use it for the first time follow these instructions

#30 cd ~ ;; uncomment 
#31 #cd ~/git ;; and comment out
#32 cd ~/git/trunk ;; and uncomment 
#33 #bzr pull http://bzr.savannah.gnu.org/r/emacs/trunk ;; comment out
#34 bzr pull

and then run ebuild

You should be prompted for your users password when it is at the point of installing to /usr/local/bin.

To run it easily use my script emq, which will be in a later post.



Comments

comments powered by Disqus
KDE
  • keyboard
  • latex
  • launchers
  • libreoffice
  • linux
  • LXDE
  • management
  • menus
  • mpd
  • music
  • obnam
  • org-mode
  • org2blog
  • passwords
  • pelican
  • productivity
  • script
  • series
  • software
  • squeeze
  • tex
  • todo lists
  • troubleshooting
  • truecrypt
  • tweaks
  • updated
  • user
  • wheezy
  • writing
  • yasnippet
  • Series