|
@@ -6,13 +6,38 @@ die() {
|
6
|
6
|
echo "$@" && exit 9
|
7
|
7
|
}
|
8
|
8
|
|
|
9
|
+
|
|
10
|
+#
|
|
11
|
+# This MKit version
|
|
12
|
+#
|
9
|
13
|
export MKIT_VERSION=__MKIT_PROJ_VERSION__
|
10
|
14
|
|
|
15
|
+#
|
|
16
|
+# Path to MKit dir (where 'include' is)
|
|
17
|
+#
|
11
|
18
|
export MKIT_DIR=${MKIT_DIR:-$(dirname "$0")}
|
|
19
|
+
|
|
20
|
+#
|
|
21
|
+# Path to MKit local config and temp
|
|
22
|
+#
|
|
23
|
+# Typically hidden in project root, here MKit can
|
|
24
|
+# save its temporary lists.
|
|
25
|
+#
|
12
|
26
|
export MKIT_LOCAL=${MKIT_LOCAL:-.mkit}
|
|
27
|
+
|
|
28
|
+#
|
|
29
|
+# Dry mode (true|false)
|
|
30
|
+#
|
|
31
|
+# Set to true to not install anything. Implies MKIT_DEBUG.
|
|
32
|
+#
|
13
|
33
|
export MKIT_DRY=${MKIT_DRY:-false}
|
|
34
|
+
|
|
35
|
+#
|
|
36
|
+# Debug mode (true|false)
|
|
37
|
+#
|
14
|
38
|
export MKIT_DEBUG=${MKIT_DEBUG:-false}
|
15
|
39
|
|
|
40
|
+
|
16
|
41
|
. "$MKIT_DIR/include/mkit.sh" || die "failed to init; check if MKIT_DIR is set properly: $MKIT_DIR"
|
17
|
42
|
|
18
|
43
|
case "$1" in
|