diff options
author | Lucio Andrés Illanes Albornoz <lucio@lucioillanes.de> | 2020-03-13 15:38:35 +0000 |
---|---|---|
committer | Lucio Andrés Illanes Albornoz <lucio@lucioillanes.de> | 2020-03-13 15:38:35 +0000 |
commit | 3e295f4e81f867fbd8b6c9c306bc1ca124e41d8b (patch) | |
tree | a9db2e9be3747bad5ff2782d20efd4bb41ffb70f /subr | |
parent | 60fba634600d0e20726c02d88735cc3d71ff0103 (diff) | |
download | midipix_build-3e295f4e81f867fbd8b6c9c306bc1ca124e41d8b.tar.bz2 midipix_build-3e295f4e81f867fbd8b6c9c306bc1ca124e41d8b.tar.xz |
subr/pkgtool_init.subr:pkgtoolp_init_prereqs(): trim list of prerequisite command dependencies.
Diffstat (limited to 'subr')
-rw-r--r-- | subr/pkgtool_init.subr | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/subr/pkgtool_init.subr b/subr/pkgtool_init.subr index c0e26ace..ce3c6808 100644 --- a/subr/pkgtool_init.subr +++ b/subr/pkgtool_init.subr @@ -164,11 +164,9 @@ pkgtoolp_init_package() { pkgtoolp_init_prereqs() { local _cmd="" _cmds_missing="" _rc=0; _status=""; for _cmd in \ - awk bunzip2 bzip2 cat chmod cmake cp date find flock \ - g++ gcc git grep gunzip gzip hostname install kill \ - ln lzip make mkdir mkfifo mktemp mv paste patch perl \ - pgrep pkill printf readlink rm sed sha256sum sort \ - tail tar test touch tr uniq wget xz zip; do + awk bzip2 cat chmod cp date find grep hostname mkdir \ + mktemp mv paste printf readlink rm sed sort tar test \ + touch tr uniq; do if ! which "${_cmd}" >/dev/null 2>&1; then _cmds_missing="${_cmds_missing:+${_cmds_missing} }${_cmd}"; fi; |