-
Notifications
You must be signed in to change notification settings - Fork 110
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·33 lines (23 loc) · 846 Bytes
/
setup.sh
File metadata and controls
executable file
·33 lines (23 loc) · 846 Bytes
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
#!/bin/bash
set -e
# Just delegate down
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
pushd "$SCRIPT_DIR" > /dev/null || fail
# Init submodules
git submodule init
git submodule update
ROOT="$SCRIPT_DIR"
source "$ROOT/shared.lib"
h1 "Installing common setup"
common-setup/setup.sh || fail "Failed common setup"
h1 "Install config specific to this machine"
per-host-config/setup.sh || fail "Failed machine specific setup"
h1 "Installing common setup post machine setup"
common-post/setup.sh || fail "Failed common setup post machine setup"
# Add the little `millis` util for cross-platform millisecond support
h1 "Adding scripts and binary utilities"
utils/setup.sh || fail "Failed utils setup"
# Restore current directory of user
popd > /dev/null || fail
# Re-read BASH settings
banner "Remember to 'source ~/.bashrc'!"