Adding checkbashsms call to test target of the Makefile as suggested by Trent W. Buck <trentbuck@gmail.com>.

This commit is contained in:
Daniel Baumann 2007-11-13 11:28:23 +01:00
parent c8f66ebe90
commit 8f8a9ec521
1 changed files with 9 additions and 0 deletions

View File

@ -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."