From: Harald Hoyer Date: Thu, 6 Jun 2013 09:31:07 +0000 (+0200) Subject: Makefile: report syntax check files for V=1 X-Git-Tag: 028~13 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=41b0e41a09ecde849a75db695db26b6ad78a1e58;p=thirdparty%2Fdracut.git Makefile: report syntax check files for V=1 --- diff --git a/Makefile b/Makefile index 06dd10568..90a4011d5 100644 --- a/Makefile +++ b/Makefile @@ -180,11 +180,11 @@ syncheck: modules.d/99base/init.sh modules.d/*/*.sh; do \ [ "$${i##*/}" = "module-setup.sh" ] && continue; \ read line < "$$i"; [ "$${line#*bash*}" != "$$line" ] && continue; \ - dash -n "$$i" ; ret=$$(($$ret+$$?)); \ + [ $$V ] && echo "dash syntax check: $$i"; dash -n "$$i" ; ret=$$(($$ret+$$?)); \ done;exit $$ret @ret=0;for i in *.sh mkinitrd-dracut.sh modules.d/*/*.sh \ modules.d/*/module-setup.sh; do \ - bash -n "$$i" ; ret=$$(($$ret+$$?)); \ + [ $$V ] && echo "bash syntax check: $$i"; bash -n "$$i" ; ret=$$(($$ret+$$?)); \ done;exit $$ret check: all syncheck rpm