#!/bin/bash #shellcheck disable=SC2034 # mkit - simple install helper # See LICENSE file for copyright and license details. init_core() { # # Load core module (or die) # #shellcheck disable=SC1090 . "$MKIT_DIR/include/mkit.sh" \ && . "$MKIT_DIR/include/vars.sh" \ && return 0 echo "failed to load core; check if MKIT_DIR is set properly: $MKIT_DIR" >&2 exit 9 } # # Path to MKit dir (where 'include' is) # MKIT_DIR=${MKIT_DIR:-$(dirname "$0")} init_core case "$1" in -V|--version-semver) echo "$MKIT_VERSION"; exit 0 ;; --version) echo "Mkit (Simple Makefile target helper) $MKIT_VERSION" exit 0 ;; esac mkit_init route "$@"