Skip to contentSkip to conversation

bootstrap: Add program checks

PATCH New Geoff Levand 1 participant 1 message Apr 4, 2020

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 bootstrap: Add program checks

Add a check for needed programs, print an error message if not found.

---
 bootstrap | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
bootstrap +14 -0
index fc9837d..9457a14 100755
@@ -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