From a79669177eed719c073a96f6cfd695eecf533c7b Mon Sep 17 00:00:00 2001
From: Daniel Baumann <daniel@debian.org>
Date: Tue, 13 Nov 2007 11:28:23 +0100
Subject: Adding checkbashsms call to test target of the Makefile as suggested
 by Trent W. Buck <trentbuck@gmail.com>.

---
 Makefile | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/Makefile b/Makefile
index e8898ae..afb5ce8 100644
--- a/Makefile
+++ b/Makefile
@@ -5,11 +5,20 @@ TRANSLATIONS="de"
 all: build
 
 test:
+	# Checking for syntax errors
 	set -e; for SCRIPT in functions/* examples/*/*.sh helpers/* hooks/*; \
 	do \
 		sh -n $$SCRIPT; \
 	done
 
+	# Checking for bashisms (temporary not failing, but only listing)
+	if [ -x /usr/bin/checkbashisms ]; \
+	then \
+		checkbashisms functions/* examples/*/*.sh helpers/* hooks/* || true; \
+	else \
+		echo "bashism test skipped - you need to install devscripts."; \
+	fi
+
 build:
 	@echo "Nothing to build."
 
-- 
cgit v1.0