123456789101112131415161718192021222324
  1. #!/bin/bash
  2. # mkit - simple install helper
  3. # See LICENSE file for copyright and license details.
  4. die() {
  5. echo "$@" && exit 9
  6. }
  7. export MKIT_VERSION=0.0.2
  8. export MKIT_DIR=${MKIT_DIR:-$(dirname "$0")}
  9. export MKIT_LOCAL=${MKIT_LOCAL:-.mkit}
  10. . "$MKIT_DIR/include/mkit.sh" || die "failed to init; check if MKIT_DIR is set properly: $MKIT_DIR"
  11. case "$1" in
  12. --version-semver) echo "$MKIT_VERSION"; exit 0 ;;
  13. --version) echo "Mkit (Simple Makefile target helper) $MKIT_VERSION"
  14. exit 0 ;;
  15. esac
  16. mkit_init
  17. route "$@"