12345678910111213141516171819202122232425262728293031323334 |
- #!/bin/bash
- #shellcheck disable=SC1090,SC2034
-
- . "$(sfpath)" || exit 3
-
- {
- SATURNIN_APP_CODENAME="__MKIT_PROJ_CODENAME__"
- SATURNIN_APP_TAGLINE="__MKIT_PROJ_TAGLINE__"
- SATURNIN_APP_VERSION="__MKIT_PROJ_VERSION__"
- SATURNIN_APP_GIT_HASH="__MKIT_PROJ_GIT_LASTHASH__"
- SATURNIN_CACHE_HOME=${SATURNIN_CACHE_HOME:-"__SATURNIN_CACHE_HOME__"}
- SATURNIN_CONFIG_HOME=${SATURNIN_CONFIG_HOME:-"__SATURNIN_CONFIG_HOME__"}
- SATURNIN_DATA_HOME=${SATURNIN_DATA_HOME:-"__SATURNIN_DATA_HOME__"}
- SATURNIN_META_HELP=${SATURNIN_META_HELP:-"+__SATURNIN_SHARE__/help"}
- SATURNIN_LIBEXEC=${SATURNIN_LIBEXEC:-"__SATURNIN_LIBEXEC__"}
- SATURNIN_LIBEXEC_PREFIX="__MKIT_PROJ_PKGNAME__-"
- PRETTY_USAGE="subcommand"
- PRETTY_DEBUG_EXCLUDE="$PRETTY_DEBUG_EXCLUDE,inigrep,saturnin"
- }
-
- shellfu import saturnin
-
- test -n "$SATURNIN_CONF_PATH" || SATURNIN_CONF_PATH="$(
- saturnin__conf_mkpath \
- "__SATURNIN_CONFIG_HOME__/ini.d" \
- "__SATURNIN_CONFIG_HOME__" \
- "__SATURNIN_CONFIG_LOCAL__" \
- "__SATURNIN_SHARE__/ini.d"
- )"
-
- export SATURNIN_CONF_PATH SHELLFU_PATH PRETTY_USAGE PRETTY_DEBUG_EXCLUDE \
- SATURNIN_CACHE_HOME SATURNIN_CONFIG_HOME SATURNIN_DATA_HOME
-
- saturnin__main "$@"
|