1234567891011121314151617181920212223 |
- #!/bin/sh
-
- case $1 in
- --version)
- echo "__MKIT_PROJ_NAME__ (__MKIT_PROJ_TAGLINE__) __MKIT_PROJ_VERSION__ - __MKIT_PROJ_CODENAME__"
- ;;
- -V|--version-semver)
- echo "__MKIT_PROJ_VERSION__"
- ;;
- "")
- echo "${SHELLFU_DIR:-__SHELLFU_DIR__}/shellfu.sh"
- ;;
- *)
- echo "usage: sfpath" >&2
- echo "usage: sfpath --version[-semver]" >&2
- echo "" >&2
- echo "Intended usage of sfpath is to determine path to library loader"
- echo "inside a shellfu script (first usage), or show Shellfu version." >&2
- echo "" >&2
- echo "Other usage is not recommended." >&2
- exit 2
- ;;
- esac
|