-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup-suckless.sh
executable file
·58 lines (53 loc) · 1.47 KB
/
setup-suckless.sh
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
#!/bin/sh
set -e
if [ ! -d $HOME/code/repos/tmp/st ]; then
git clone git://git.suckless.org/st ~/code/repos/tmp/st
fi
rm -f ~/code/repos/tmp/st/config.h
ln -s ~/dotfiles/support/config-st.h ~/code/repos/tmp/st/config.h
cd ~/code/repos/tmp/st
git apply ~/dotfiles/support/patches/st-anysize-0.8.1.diff || true
make clean
make
sudo make install
cd -
if [ ! -d $HOME/code/repos/tmp/dmenu ]; then
git clone git://git.suckless.org/dmenu ~/code/repos/tmp/dmenu
fi
rm -f ~/code/repos/tmp/dmenu/config.h
ln -s ~/dotfiles/support/config-dmenu.h ~/code/repos/tmp/dmenu/config.h
cd ~/code/repos/tmp/dmenu
make clean
make
sudo make install
cd -
if [ ! -d $HOME/code/repos/tmp/dwm ]; then
git clone git://git.suckless.org/dwm ~/code/repos/tmp/dwm
fi
rm -f ~/code/repos/tmp/dwm/config.h
ln -s ~/dotfiles/support/config-dwm.h ~/code/repos/tmp/dwm/config.h
cd ~/code/repos/tmp/dwm
make clean
make
sudo make install
cd -
if [ ! -d $HOME/code/repos/tmp/slstatus ]; then
git clone git://git.suckless.org/slstatus ~/code/repos/tmp/slstatus
fi
rm -f ~/code/repos/tmp/slstatus/config.h
ln -s ~/dotfiles/support/config-slstatus.h ~/code/repos/tmp/slstatus/config.h
cd ~/code/repos/tmp/slstatus
make clean
make
sudo make install
cd -
if [ ! -d $HOME/code/repos/tmp/slock ]; then
git clone git://git.suckless.org/slock ~/code/repos/tmp/slock
fi
rm -f ~/code/repos/tmp/slock/config.h
ln -s ~/dotfiles/support/config-slock.h ~/code/repos/tmp/slock/config.h
cd ~/code/repos/tmp/slock
make clean
make
sudo make install
cd -