]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
add target "check"
authorHarald Hoyer <harald@redhat.com>
Fri, 15 May 2009 10:44:36 +0000 (12:44 +0200)
committerHarald Hoyer <harald@redhat.com>
Fri, 15 May 2009 10:44:36 +0000 (12:44 +0200)
add dash syntax checking

Makefile

index 0474edeba7eb5d2506a4e7313aa4eb98d65e7447..ef264eb71a6b87095614767f356d52b45b49ab0f 100644 (file)
--- 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