diff options
Diffstat (limited to 'subr/build.subr')
-rw-r--r-- | subr/build.subr | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/subr/build.subr b/subr/build.subr index 1341e973..afd76072 100644 --- a/subr/build.subr +++ b/subr/build.subr @@ -108,6 +108,15 @@ lfilter() { echo ${_lnew}; }; +lmatch() { + local _cmp="${3}"; push_IFS "${2}"; set -- ${1}; pop_IFS; + while [ ${#} -gt 0 ]; do + if [ "${1}" = "${_cmp}" ]; then + return 0; + fi; shift; + done; return 1; +}; + log_env_vars() { local _nvar _arg _arg_len_max; log_msg info "Variables for this ${1:-build}:"; shift; @@ -148,15 +157,6 @@ log_msg() { fi; [ ${_lvl} = failexit ] && exit 1 || return 0; }; -match_list() { - local _cmp="${3}"; push_IFS "${2}"; set -- ${1}; pop_IFS; - while [ ${#} -gt 0 ]; do - if [ "${1}" = "${_cmp}" ]; then - return 0; - fi; shift; - done; return 1; -}; - run_cmd_unsplit() { local _cmd="${1}" _cmdline _rc; shift; while [ ${#} -gt 0 ]; do |