Browse Source

Update Mkit to v0.0.1

Alois Mahdal 9 years ago
parent
commit
da6c7f6cb6

+ 0
- 0
utils/mkit/include/build.sh View File


+ 0
- 0
utils/mkit/include/deploy.sh View File


+ 0
- 0
utils/mkit/include/ini.sh View File


+ 0
- 0
utils/mkit/include/mkit.sh View File


+ 0
- 0
utils/mkit/include/release.sh View File


+ 9
- 1
utils/mkit/make View File

@@ -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 "$@"