-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup-emacs.sh
More file actions
executable file
·67 lines (60 loc) · 1.89 KB
/
setup-emacs.sh
File metadata and controls
executable file
·67 lines (60 loc) · 1.89 KB
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
#!/bin/sh
# Fail on error
set -e
# Pick script location
SETUP_DIR=$(pwd)
# Create installers placeholder
mkdir -p $SETUP_DIR/installers
# Utilities
echo "Setting up utilities..."
sudo apt-get install -y build-essential
#sudo apt-get install -y autoconf
#sudo apt-get install -y texinfo
#sudo apt-get install -y xaw3dg-dev
#sudo apt-get install -y libncurses5-dev
#sudo apt-get install -y libncurses-dev
#sudo apt-get install -y libtool
#sudo apt-get install -y libssl-dev
#sudo apt-get install -y libjpeg-dev
#sudo apt-get install -y libpng16-dev
#sudo apt-get install -y libotf-dev
#sudo apt-get install -y libm17n-dev
#sudo apt-get install -y libgif-dev
#sudo apt-get install -y libgpm-dev
#sudo apt-get install -y libghc-gconf-dev
#sudo apt-get install -y libtiff-dev
#sudo apt-get install -y librsvg2-dev
#sudo apt-get install -y libmagickcore-dev
#sudo apt-get install -y libmagick++-dev
#sudo apt-get install -y libgtk2.0-dev
#sudo apt-get install -y libgtk-3-dev
#sudo apt-get install -y libwebkitgtk-3.0-dev
#sudo apt-get install -y libx11-dev
#sudo apt-get install -y libxft-dev
#sudo apt-get install -y libgnutls-dev
#sudo apt-get install -y libxpm-dev
#sudo apt-get install -y libxml2-dev
#sudo apt-get install -y automake
sudo apt-get install -y checkinstall
sudo apt-get build-dep emacs24
if [ ! -e $SETUP_DIR/installers/emacs-25.1.tar.gz ]; then
echo "Downloading Emacs 25.1..."
wget http://ftp.gnu.org/gnu/emacs/emacs-25.1.tar.gz -P $SETUP_DIR/installers
fi
if [ ! -e $SETUP_DIR/emacs-25.1 ]; then
echo "Extracting emacs-25.1.tar.gz..."
cd $SETUP_DIR/installers
tar -xvf emacs-25.1.tar.gz
mv emacs-25.1 ../
cd ../emacs-25.1
./configure
make
sudo checkinstall
echo "Successfully built .deb file and installed Emacs-25.1"
fi
if [ ! -e ~/.emacs.d ]; then
cd
echo "Pulling emacs.d..."
git clone https://github.com/anujsrc/emacs.d ~/.emacs.d
fi
echo "Enjoy!"