-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·53 lines (45 loc) · 1.25 KB
/
install.sh
File metadata and controls
executable file
·53 lines (45 loc) · 1.25 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
#!/bin/bash
function deps {
if [[ "$OSTYPE" == "darwin"* ]]; then
echo "INFO: Running MacOS installation"
if ! command -v brew >/dev/null 2>&1; then
echo "INFO: Installing Homebrew"
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
fi
if ! command -v stow >/dev/null 2>&1; then
echo "INFO: Installing Stow"
brew install stow
fi
elif [[ "$OSTYPE" == "linux-gnu"* ]]; then
echo "INFO: Running linux (Ubuntu preferred) installation"
else
echo "ERROR: OS $OSTYPE not supported yet :("
exit 1
fi
echo "INFO: All deps installed!"
}
function install {
local skip=("compiled")
for dir in */; do
if [[ -d "$dir" ]]; then
dir_name=${dir%/}
if [[ " ${skip[*]} " == *" $dir_name "* ]]; then
continue
fi
echo "INFO: stowing $dir_name"
stow "$dir_name"
fi
done
}
function compile_deps {
echo "INFO: Building compiled tools"
bash "$(dirname "$0")/compiled/build.sh"
}
function cli_init {
~/jollyjerr.sh init
}
deps
install
compile_deps
cli_init
echo "Done! Leeeeetttttt'sssss gooooooo!!!!!!!"