From: Harald Hoyer Date: Wed, 4 Apr 2012 13:51:10 +0000 (+0200) Subject: Makefile: fix syncheck X-Git-Tag: 018~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f5af0df82193cd9dece51c20bd400bfef69eec11;p=thirdparty%2Fdracut.git Makefile: fix syncheck skip dash syntax check, if bash found in shebang --- diff --git a/Makefile b/Makefile index f0af487f5..80d372f83 100644 --- a/Makefile +++ b/Makefile @@ -100,10 +100,10 @@ syncheck: @ret=0;for i in dracut-initramfs-restore.sh dracut-logger.sh \ modules.d/99base/init.sh modules.d/*/*.sh; do \ [ "$${i##*/}" = "module-setup.sh" ] && continue; \ - [ "$${i##*/}" = "caps.sh" ] && continue; \ + read line < "$$i"; [ "$${line#*bash*}" != "$$line" ] && continue; \ dash -n "$$i" ; ret=$$(($$ret+$$?)); \ done;exit $$ret - @ret=0;for i in *.sh mkinitrd-dracut.sh modules.d/02caps/caps.sh \ + @ret=0;for i in *.sh mkinitrd-dracut.sh modules.d/*/*.sh \ modules.d/*/module-setup.sh; do \ bash -n "$$i" ; ret=$$(($$ret+$$?)); \ done;exit $$ret