make 627B

1234567891011121314151617181920212223242526
  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.8
  8. export MKIT_DIR=${MKIT_DIR:-$(dirname "$0")}
  9. export MKIT_LOCAL=${MKIT_LOCAL:-.mkit}
  10. export MKIT_DRY=${MKIT_DRY:-false}
  11. export MKIT_DEBUG=${MKIT_DEBUG:-false}
  12. . "$MKIT_DIR/include/mkit.sh" || die "failed to init; check if MKIT_DIR is set properly: $MKIT_DIR"
  13. case "$1" in
  14. --version-semver) echo "$MKIT_VERSION"; exit 0 ;;
  15. --version) echo "Mkit (Simple Makefile target helper) $MKIT_VERSION"
  16. exit 0 ;;
  17. esac
  18. mkit_init
  19. route "$@"