blob: bcddb9a5300a3f9414d69f8f684f88f135dfdd0a (
plain)
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
|
#!/bin/bash
set -e
if [ ${PWD} != "/home/tmu/dotfiles" ]; then
echo "Not in ~/dotfiles, proceed manually"
exit 1
fi
git submodule update --init --recursive
confirm () {
[[ "$(read -e -p "$1 [y/N]> "; echo $REPLY)" == [Yy]* ]]
}
if confirm "Check and install symlinks?"; then
awk -f install.awk ensureddirs.csv symlinks.csv
fi
cd tree/src
if confirm "Build and use musl (WIP)?"; then
cd musl
./setup.sh
cd ..
# export CC=${HOME}/.local/musl/bin/musl-gcc
# ln -sf ${HOME}/.local/musl/bin/musl-gcc ${HOME}/.local/bin/cc
fi
if confirm "Build tcc?"; then
cd tcc
./setup.sh
cd ..
fi
if confirm "Build micro haskell?"; then
cd microhs
./setup.sh
cd ..
fi
if confirm "Build chicken scheme?"; then
cd chicken
./setup.sh
cd ..
fi
if confirm "Build dwm/dmenu/st/slstatus/dmenu?"; then
cd dwm
./setup.sh
cd ..
cd dmenu
./setup.sh
cd ..
cd st
./setup.sh
cd ..
cd slstatus
./setup.sh
cd ..
fi
if confirm "Build non-local tools (caps2esc) for openrc?"; then
cd capslock
./setup.sh
cd ..
fi
if confirm "Build vi?"; then
cd vi
./setup.sh
cd ..
fi
if confirm "Build Emacs?"; then
cd emacs
./setup.sh
cd ..
fi
echo "All set up, remember to source ~/.bash_profile and symlink tmubrowse and tmuterm."
|