shell dot on steroids https://pagure.io/shellfu

sfpath.skel 679B

1234567891011121314151617181920212223
  1. #!/bin/sh
  2. case $1 in
  3. --version)
  4. echo "__MKIT_PROJ_NAME__ (__MKIT_PROJ_TAGLINE__) __MKIT_PROJ_VERSION__ - __MKIT_PROJ_CODENAME__"
  5. ;;
  6. -V|--version-semver)
  7. echo "__MKIT_PROJ_VERSION__"
  8. ;;
  9. "")
  10. echo "${SHELLFU_DIR:-__SHELLFU_DIR__}/shellfu.sh"
  11. ;;
  12. *)
  13. echo "usage: sfpath" >&2
  14. echo "usage: sfpath --version[-semver]" >&2
  15. echo "" >&2
  16. echo "Intended usage of sfpath is to determine path to library loader"
  17. echo "inside a shellfu script (first usage), or show Shellfu version." >&2
  18. echo "" >&2
  19. echo "Other usage is not recommended." >&2
  20. exit 2
  21. ;;
  22. esac