-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtool
More file actions
executable file
·73 lines (55 loc) · 970 Bytes
/
tool
File metadata and controls
executable file
·73 lines (55 loc) · 970 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
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
#!/usr/bin/env bash
ABSOLUTE_PATH="$( cd "$(dirname "$0")"; pwd -P )"
VERSION="0.1.0"
source "${ABSOLUTE_PATH}/oo/lib/oo-bootstrap.sh"
import config/paths
STAGE0=${BUILD}/stage0
STAGE1=${BUILD}/stage1
STAGE2=${BUILD}/stage2
import scripts/chroot
import scripts/cli
import scripts/preflight
import stage0/build
import stage1/build
import stage2/build
case "$1" in
("preflight")
preflight
;;
("build")
${ABSOLUTE_PATH}/tool clean
${ABSOLUTE_PATH}/tool clean-build
stage0
stage1
stage2
;;
("help")
help
;;
("info")
info
;;
("clean")
for D in ${ABSOLUTE_PATH}/build/*; do [ -d "${D}" ] && clean_mounts $D; done
sudo chown -R $(whoami) ${ABSOLUTE_PATH}/build
rm -rf ${ABSOLUTE_PATH}/download
;;
("clean-build")
rm -rf ${ABSOLUTE_PATH}/build
;;
("stage0")
stage0
;;
("stage1")
stage1
;;
("stage2")
stage2
;;
("version")
version
;;
*)
help
;;
esac