Blame 0011-Makefile-do-not-dash-syntax-check-module-setup.sh.patch

Harald Hoyer 59f9af
From 440a4cc2475ff9ed1fc7b52b965dded8a36c9a2d Mon Sep 17 00:00:00 2001
Harald Hoyer 59f9af
From: Harald Hoyer <harald@redhat.com>
Harald Hoyer 59f9af
Date: Fri, 18 Feb 2011 13:11:53 +0100
Harald Hoyer 59f9af
Subject: [PATCH] Makefile: do not dash syntax check module-setup.sh
Harald Hoyer 59f9af
Harald Hoyer 59f9af
module-setup.sh is bash syntax, so dash complains about bash contructs
Harald Hoyer 59f9af
---
Harald Hoyer 59f9af
 Makefile |    1 +
Harald Hoyer 59f9af
 1 files changed, 1 insertions(+), 0 deletions(-)
Harald Hoyer 59f9af
Harald Hoyer 59f9af
diff --git a/Makefile b/Makefile
Harald Hoyer 59f9af
index 9dbe981..ab69c16 100644
Harald Hoyer 59f9af
--- a/Makefile
Harald Hoyer 59f9af
+++ b/Makefile
Harald Hoyer 59f9af
@@ -95,6 +95,7 @@ gitrpm: dracut-$(VERSION)-$(GITVERSION).tar.bz2
Harald Hoyer 59f9af
 
Harald Hoyer 59f9af
 check: all
Harald Hoyer 59f9af
 	@ret=0;for i in modules.d/99base/init modules.d/*/*.sh; do \
Harald Hoyer 59f9af
+                [ "$${i##*/}" = "module-setup.sh" ] && continue; \
Harald Hoyer 59f9af
 		dash -n "$$i" ; ret=$$(($$ret+$$?)); \
Harald Hoyer 59f9af
 	done;exit $$ret
Harald Hoyer 59f9af
 	$(MAKE) -C test check