Joey Armstrong | 9cbbf7f | 2024-08-14 17:05:18 -0400 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | ## ----------------------------------------------------------------------- |
| 3 | ## ----------------------------------------------------------------------- |
| 4 | |
| 5 | ## ----------------------------------------------------------------------- |
| 6 | ## ----------------------------------------------------------------------- |
| 7 | function init() |
| 8 | { |
| 9 | declare pgm='' |
| 10 | pgm="$(realpath --canonicalize-existing "$0")" |
| 11 | readonly pgm |
| 12 | |
| 13 | declare -g pgmsrc |
| 14 | pgmsrc="$(readlink --canonicalize-existing "${BASH_SOURCE[0]}")" |
| 15 | readonly pgmsrc |
| 16 | |
| 17 | # stack-trace-on-error |
| 18 | # interrupt handler |
| 19 | # mkdir with auto-cleanup at exit |
| 20 | declare pgm_root="${pgm%%/jira/jira-search/include.sh}" |
| 21 | |
| 22 | declare root |
| 23 | root="${pgm%%/jira/bin/jira-search.sh}" |
| 24 | source "$root/lf/onf-common/common.sh" '--common-args-begin--' |
| 25 | |
| 26 | pgm_lib="${root}/jira/jira-search" |
| 27 | readonly pgm_lib |
| 28 | |
| 29 | pgm_bin="${root}/bin" |
| 30 | readonly pgm_bin |
| 31 | |
| 32 | pgm_help="${root}/jira/jira-search/help" |
| 33 | readonly pgm_help |
| 34 | } |
| 35 | # init |
| 36 | # unset init |
| 37 | |
| 38 | ##--------------------## |
| 39 | ##---] INCLUDES [---## |
| 40 | ##--------------------## |
| 41 | source "${pgm_lib}/getopt/detect-modifiers.sh" |
| 42 | |
| 43 | # source "${pgm_lib}/utils.sh" |
| 44 | #source "$pgmlib/fixversion.sh" |
| 45 | #source "$pgmlib/resolved.sh" |
| 46 | source "${pgm_lib}/fixversion.sh" |
Joey Armstrong | 6890fa9 | 2024-08-15 12:14:37 -0400 | [diff] [blame^] | 47 | source "${pgm_lib}/is_empty.sh" |
Joey Armstrong | 9cbbf7f | 2024-08-14 17:05:18 -0400 | [diff] [blame] | 48 | source "${pgm_lib}/resolved.sh" |
| 49 | source "${pgm_lib}/help/utils.sh" |
| 50 | |
| 51 | # [EOF] |