mirror of
https://github.com/macports/mpbb.git
synced 2026-07-12 18:18:44 -07:00
Move get-maintainers to functions
This commit is contained in:
@@ -203,3 +203,11 @@ failcache_failure() {
|
||||
mkdir -p "${option_failcache_dir}"
|
||||
echo "${BUILDBOT_BUILDURL:-unknown}" > "${option_failcache_dir}/${key}"
|
||||
}
|
||||
|
||||
get-maintainers() {
|
||||
# 'username@macports.org github_username' => 'username@macports.org'
|
||||
# $option_prefix is set in mpbb
|
||||
# shellcheck disable=SC2154
|
||||
"${option_prefix}/bin/port" info --index --maintainers --line "$@" \
|
||||
| tr ', ' '\n' | fgrep '@' | tr '\n' ',' | sed 's/,$//'
|
||||
}
|
||||
|
||||
@@ -17,14 +17,6 @@ Run \`$prog help' for global options and a list of other subcommands.
|
||||
EOF
|
||||
}
|
||||
|
||||
get-maintainers() {
|
||||
# 'username@macports.org github_username' => 'username@macports.org'
|
||||
# $option_prefix is set in mpbb
|
||||
# shellcheck disable=SC2154
|
||||
"${option_prefix}/bin/port" info --index --maintainers --line "$@" \
|
||||
| tr ', ' '\n' | fgrep '@' | tr '\n' ',' | sed 's/,$//'
|
||||
}
|
||||
|
||||
install-dependencies() {
|
||||
local port=${1-}
|
||||
if [[ -z $port ]]; then
|
||||
|
||||
@@ -17,14 +17,6 @@ Run \`$prog help' for global options and a list of other subcommands.
|
||||
EOF
|
||||
}
|
||||
|
||||
get-maintainers() {
|
||||
# 'username@macports.org github_username' => 'username@macports.org'
|
||||
# $option_prefix is set in mpbb
|
||||
# shellcheck disable=SC2154
|
||||
"${option_prefix}/bin/port" info --index --maintainers --line "$@" \
|
||||
| tr ', ' '\n' | fgrep '@' | tr '\n' ',' | sed 's/,$//'
|
||||
}
|
||||
|
||||
install-port() {
|
||||
local port=${1-}
|
||||
if [[ -z $port ]]; then
|
||||
|
||||
Reference in New Issue
Block a user