summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 9 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 3d7af5b..dd60498 100644
--- a/Makefile
+++ b/Makefile
@@ -5,11 +5,20 @@ TRANSLATIONS="it"
all: build
test:
+ # Checking for syntax errors
set -e; for SCRIPT in bin/* hooks/* scripts/live scripts/live-functions scripts/live-helpers scripts/*/*; \
do \
sh -n $$SCRIPT; \
done
+ # Checking for bashisms (temporary not failing, but only listing)
+ if [ -x /usr/bin/checkbashisms ]; \
+ then \
+ checkbashisms bin/* hooks/* scripts/live scripts/live-functions scripts/live-helpers scripts/*/* || true; \
+ else \
+ echo "bashism test skipped - you need to install devscripts."; \
+ fi
+
build:
install: test build