summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@open-infrastructure.net>2021-04-11 13:06:37 +0000
committerDaniel Baumann <daniel.baumann@open-infrastructure.net>2021-04-11 13:09:35 +0000
commit8334cbd120a8228f00f48355f87c8c8cb8b08081 (patch)
treeb2257aa5c85a7180d7ef5d721321e341bfba986c
parentCosmetically improving output of test target. (diff)
downloadcompute-tools-8334cbd120a8228f00f48355f87c8c8cb8b08081.tar.xz
compute-tools-8334cbd120a8228f00f48355f87c8c8cb8b08081.zip
Adding shellcheck in test target (but not failing yet on it).
Signed-off-by: Daniel Baumann <daniel.baumann@open-infrastructure.net>
Diffstat (limited to '')
-rw-r--r--Makefile12
1 files changed, 12 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 2eca00b..343438e 100644
--- a/Makefile
+++ b/Makefile
@@ -47,6 +47,18 @@ test:
fi
@echo " done."
+ # FIXME: fail hard on shellcheck once all issues are fixed
+ @echo -n "Checking with shellcheck... "
+ @if [ -x /usr/bin/checkbashisms ]; \
+ then \
+ for SCRIPT in $(SCRIPTS); \
+ do \
+ shellcheck $${SCRIPT} || true; \
+ echo -n "."; \
+ done; \
+ else \
+ echo "Note: shellcheck not installed, skipping shellcheck."; \
+ fi
@echo " done."
build: share/man/*.txt