|
@@ -6,11 +6,19 @@ die() {
|
6
|
6
|
echo "$@" && exit 9
|
7
|
7
|
}
|
8
|
8
|
|
9
|
|
-export MKIT_DIR=${MKIT_DIR:-mkit}
|
|
9
|
+export MKIT_VERSION=0.0.1
|
|
10
|
+
|
|
11
|
+export MKIT_DIR=${MKIT_DIR:-$(dirname "$0")}
|
10
|
12
|
export MKIT_LOCAL=${MKIT_LOCAL:-.mkit}
|
11
|
13
|
|
12
|
14
|
. "$MKIT_DIR/include/mkit.sh" || die "failed to init; check if MKIT_DIR is set properly: $MKIT_DIR"
|
13
|
15
|
|
|
16
|
+case "$1" in
|
|
17
|
+ --version-semver) echo "$MKIT_VERSION"; exit 0 ;;
|
|
18
|
+ --version) echo "Mkit (Simple Makefile target helper) $MKIT_VERSION"
|
|
19
|
+ exit 0 ;;
|
|
20
|
+esac
|
|
21
|
+
|
14
|
22
|
mkit_init
|
15
|
23
|
|
16
|
24
|
route "$@"
|