midipix / build / midipix_build

Forked from build/midipix_build 4 years ago
Clone

9f66ec List all missing prerequisite commands if one or more are missing.

Authored and Committed by Lucio Andrés Illanes Albornoz (arab, vxp) 8 years ago
1 file changed. 4 lines added. 1 lines removed.
    List all missing prerequisite commands if one or more are missing.
    
        
file modified
+4 -1
build.subr CHANGED
@@ -155,9 +155,12 @@ check_path_vars() {
155
155
check_prereqs() {
156
156
while [ ${#} -gt 0 ]; do
157
157
if ! command -v ${1} >/dev/null; then
158
- log_msg failexit "Error: missing prerequisite command \`${1}'.";
158
+ _cp_missing_list="${1}${_cp_missing_list:+ ${_cp_missing_list}}";
159
159
fi; shift;
160
160
done;
161
+ if [ -n "${_cp_missing_list}" ]; then
162
+ log_msg failexit "Error: missing prerequisite command(s): ${_cp_missing_list}.";
163
+ fi; unset _cp_missing_list;
161
164
};
162
165
163
166
# Clear the environment by unsetting each exported variable except