From: Harald Hoyer Date: Fri, 15 May 2009 10:44:36 +0000 (+0200) Subject: add target "check" X-Git-Tag: 0.1~274 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5cb6c761c14147c54b63ccfc83b899f1c2964c65;p=thirdparty%2Fdracut.git add target "check" add dash syntax checking --- diff --git a/Makefile b/Makefile index 0474edeba..ef264eb71 100644 --- a/Makefile +++ b/Makefile @@ -38,6 +38,11 @@ test: test/root.ext2 all test/root.ext2: test/test-init test/make-test-root sudo test/make-test-root +check: + @ret=0;for i in modules.d/99base/init modules.d/*/*.sh; do \ + dash -n "$$i" ; ret=$$(($$ret+$$?)); \ + done;exit $$ret + testimage: all ./dracut -l -f test-$(shell uname -r).img $(shell uname -r) @echo wrote test-$(shell uname -r).img