-
Notifications
You must be signed in to change notification settings - Fork 0
/
install
executable file
·49 lines (37 loc) · 1.03 KB
/
install
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
#!/bin/bash
# make sure we are in the same directory as the script.
DIR=$( cd "$( dirname "$0" )" && pwd )
cd $DIR
# get configuration
source ./config
# script must be run as root
if [[ $EUID -ne 0 ]]; then
echo "This script must be run as root" 1>&2
exit 1
fi
# copy built configs
echo "copying built configs to /"
mv ./build/* /
# remove build directory
echo "removing build directory"
rmdir ./build
# install emacs
echo "installing emacs"
aptitude install emacs
# install necessary gconf
echo "installing gconf"
aptitude install gconf-defaults-service
# install necessary component for kane's emacs color themes
echo "installing color themes"
aptitude install emacs-goodies-el
# install open jdk
echo "installing openjdk"
aptitude install openjdk-6-jdk
# get leiningen
echo "installing leiningen"
wget https://raw.github.com/technomancy/leiningen/stable/bin/lein
# make sure ~/bin exists, create if not
mkdir /home/$USER/bin
# move install file to ~/bin, set executable, execute
mv lein /home/$USER/bin
chmod 755 /home/$USER/bin/lein