summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2007-11-13 11:28:23 +0100
committerDaniel Baumann <daniel@debian.org>2011-03-09 18:22:29 +0100
commita79669177eed719c073a96f6cfd695eecf533c7b (patch)
tree2114d25cdbc9112e2c2ab687b437aef5a621a831 /Makefile
parent0e2e348b5315cc307548c15029bd369ece41a02f (diff)
downloadlive-build-a79669177eed719c073a96f6cfd695eecf533c7b.zip
live-build-a79669177eed719c073a96f6cfd695eecf533c7b.tar.gz
Adding checkbashsms call to test target of the Makefile as suggested by Trent W. Buck <trentbuck@gmail.com>.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 9 insertions, 0 deletions
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."