summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorLucio Andrés Illanes Albornoz (arab, vxp) <l.illanes@gmx.de>2016-06-22 18:11:12 +0000
committerLucio Andrés Illanes Albornoz (arab, vxp) <l.illanes@gmx.de>2016-06-22 18:11:12 +0000
commit9f66ec05389916fdd3e79edc93749d18ea920399 (patch)
treeb12e02ba4ec983bfb73bae7a6200d98f6073cc69
parent578dff61da9e7f660a41997d27817756d5470bf4 (diff)
downloadmidipix_build-9f66ec05389916fdd3e79edc93749d18ea920399.tar.bz2
midipix_build-9f66ec05389916fdd3e79edc93749d18ea920399.tar.xz
List all missing prerequisite commands if one or more are missing.
-rw-r--r--build.subr5
1 files changed, 4 insertions, 1 deletions
diff --git a/build.subr b/build.subr
index 5093b3e0..66e6ff38 100644
--- a/build.subr
+++ b/build.subr
@@ -155,9 +155,12 @@ check_path_vars() {
check_prereqs() {
while [ ${#} -gt 0 ]; do
if ! command -v ${1} >/dev/null; then
- log_msg failexit "Error: missing prerequisite command \`${1}'.";
+ _cp_missing_list="${1}${_cp_missing_list:+ ${_cp_missing_list}}";
fi; shift;
done;
+ if [ -n "${_cp_missing_list}" ]; then
+ log_msg failexit "Error: missing prerequisite command(s): ${_cp_missing_list}.";
+ fi; unset _cp_missing_list;
};
# Clear the environment by unsetting each exported variable except