summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorHarald Hoyer <harald@redhat.com>2013-06-13 11:09:52 +0200
committerHarald Hoyer <harald@redhat.com>2013-06-13 11:19:26 +0200
commit36c34f4e71620faf7ca34c44497ab53580d965c5 (patch)
treefc9da8ef7a6b3ca5bd0b71bb3db4ac18dcf51ed7 /Makefile
parent373efa4427cda252a920755e048d4d63b07a25cd (diff)
downloaddracut-36c34f4e71620faf7ca34c44497ab53580d965c5.tar.gz
dracut-36c34f4e71620faf7ca34c44497ab53580d965c5.tar.bz2
dracut-36c34f4e71620faf7ca34c44497ab53580d965c5.zip
Don't use do syncheck for target all and refine syncheck
instead of "dash -n" we now use "bash --posix -n" we also check for "[[ " in posix shell files
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 4 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index d1201d60..436421cc 100644
--- a/Makefile
+++ b/Makefile
@@ -38,7 +38,7 @@ manpages = $(man1pages) $(man5pages) $(man7pages) $(man8pages)
.PHONY: install clean archive rpm testimage test all check AUTHORS doc dracut-version.sh
-all: syncheck dracut-version.sh dracut-install
+all: dracut-version.sh dracut-install
DRACUT_INSTALL_OBJECTS = \
install/dracut-install.o \
@@ -176,11 +176,11 @@ rpm: dracut-$(VERSION).tar.bz2
( mv "$$rpmbuild"/$$(arch)/*.rpm .; mv "$$rpmbuild"/*.src.rpm .;rm -fr "$$rpmbuild"; ls *.rpm )
syncheck:
- @ret=0;for i in dracut-initramfs-restore.sh dracut-logger.sh \
- modules.d/99base/init.sh modules.d/*/*.sh; do \
+ @ret=0;for i in dracut-initramfs-restore.sh modules.d/*/*.sh; do \
[ "$${i##*/}" = "module-setup.sh" ] && continue; \
read line < "$$i"; [ "$${line#*bash*}" != "$$line" ] && continue; \
- [ $$V ] && echo "dash syntax check: $$i"; dash -n "$$i" ; ret=$$(($$ret+$$?)); \
+ [ $$V ] && echo "posix syntax check: $$i"; bash --posix -n "$$i" ; ret=$$(($$ret+$$?)); \
+ [ $$V ] && echo "checking for [[: $$i"; if grep -Fq '[[ ' "$$i" ; then ret=$$(($$ret+1)); echo "$$i contains [["; fi \
done;exit $$ret
@ret=0;for i in *.sh mkinitrd-dracut.sh modules.d/*/*.sh \
modules.d/*/module-setup.sh; do \