bootstrap: Add program checks
Subsystems (2)
PATCH 1/1 bootstrap: Add program checks
Add a check for needed programs, print an error message if not found.
Signed-off-by Geoff Levand <[email protected]>
--- bootstrap | 14 ++++++++++++++ 1 file changed, 14 insertions(+)
bootstrap +14 -0
@@ -19,6 +19,20 @@ ## @start 1 #! /bin/sh +progs="autoconf automake make" + +unset result +for p in ${progs}; do + if ! command -v "${p}" > /dev/null; then + echo "Please install ${p}" + result=1 + fi +done + +if [ -n "${result}" ]; then + exit 1 +fi + set -x aclocal -I config autoheader
Signature · 7 lines
2.20.1 _______________________________________________ kexec mailing list [email protected] http://lists.infradead.org/mailman/listinfo/kexec