-
Notifications
You must be signed in to change notification settings - Fork 0
/
install-all.sh
executable file
·72 lines (56 loc) · 1.42 KB
/
install-all.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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
#! /usr/bin/env bash
set -e
set -x
export NPROC=${NPROC:-4}
# ./build-llvm.sh
#
# # ## -flto required ld.gold, otherwise results in segmentation faults
# # # Set ld.gold as default
# # sudo rm /usr/bin/ld; sudo ln -s /usr/bin/x86_64-linux-gnu-ld.gold /usr/bin/ld
# # # Restore ld.bfd
# # sudo rm /usr/bin/ld; sudo ln -s /usr/bin/x86_64-linux-gnu-ld.bfd /usr/bin/ld
# if [ -x "$(command -v clang 2>/dev/null)" ]; then
# export CC=clang
# export CXX=clang++
# export AR=llvm-ar
# export RANLIB=llvm-ranlib
# fi
export CFLAGS='-O3 -fomit-frame-pointer -fstrict-aliasing -flto'
export CXXFLAGS='-O3 -fomit-frame-pointer -fstrict-aliasing -flto'
export LDFLAGS="-flto"
./install.sh
if node --version 2>&1 1>/dev/null; then
cd ~/
npm install prettier
else
echo "Need to install latest node from https://nodejs.org/en/download/"
fi
cd ~/yuki
if [[ ! -d dwm ]]; then
git clone https://github.com/choppinblockparty/yuki-s-dwm dwm
cd dwm
else
cd dwm
git pull
fi
./install.sh
cd ~
if [[ ! -d .emacs.d ]]; then
git clone https://github.com/choppinblockparty/yuki-s-.emacs.d .emacs.d
cd .emacs.d
git submodule update --init --recursive
else
cd .emacs.d
git pull
fi
./tools/install-prerequisits.sh
./tools/install-emacs.sh /opt/emacs
cd ~/yuki
if [[ ! -d keyboard-hook ]]; then
git clone https://github.com/ChoppinBlockParty/keyboard-hook.git
cd keyboard-hook
else
cd keyboard-hook
git pull
fi
./install.sh