]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
Makefile: split syntax check from target "check" to "syncheck"
authorHarald Hoyer <harald@redhat.com>
Thu, 17 Mar 2011 11:12:48 +0000 (12:12 +0100)
committerHarald Hoyer <harald@redhat.com>
Thu, 17 Mar 2011 11:12:48 +0000 (12:12 +0100)
also add syntax check for the bash scripts

Makefile

index 1733c2337667bdc1eef81ea528d6e735ebab1f00..2d0c39565366d0551461f8889bbb7c988f2b2aee 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -94,11 +94,17 @@ gitrpm: dracut-$(VERSION)-$(GITVERSION).tar.bz2
        mv dracut.spec.bak dracut.spec
        rm -fr BUILD BUILDROOT
 
-check: all
-       @ret=0;for i in modules.d/99base/init modules.d/*/*.sh; do \
+syncheck:
+       @ret=0;for i in dracut-logger modules.d/99base/init modules.d/*/*.sh; do \
                 [ "$${i##*/}" = "module-setup.sh" ] && continue; \
+                [ "$${i##*/}" = "caps.sh" ] && continue; \
                dash -n "$$i" ; ret=$$(($$ret+$$?)); \
        done;exit $$ret
+       @ret=0;for i in dracut modules.d/02caps/caps.sh modules.d/*/module-setup.sh; do \
+               bash -n "$$i" ; ret=$$(($$ret+$$?)); \
+       done;exit $$ret
+
+check: all syncheck
        $(MAKE) -C test check
 
 testimage: all