From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1MLnnE-0006UY-0d for mharc-grub-devel@gnu.org; Tue, 30 Jun 2009 20:35:20 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MLnnB-0006QE-76 for grub-devel@gnu.org; Tue, 30 Jun 2009 20:35:17 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MLnn5-0006Gz-RG for grub-devel@gnu.org; Tue, 30 Jun 2009 20:35:16 -0400 Received: from [199.232.76.173] (port=52176 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MLnn5-0006Gh-HS for grub-devel@gnu.org; Tue, 30 Jun 2009 20:35:11 -0400 Received: from c60.cesmail.net ([216.154.195.49]:17877) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.60) (envelope-from ) id 1MLnn5-0000Ra-04 for grub-devel@gnu.org; Tue, 30 Jun 2009 20:35:11 -0400 Received: from unknown (HELO smtprelay2.cesmail.net) ([192.168.1.112]) by c60.cesmail.net with ESMTP; 30 Jun 2009 20:35:10 -0400 Received: from mj.roinet.com (static-72-92-88-10.phlapa.fios.verizon.net [72.92.88.10]) by smtprelay2.cesmail.net (Postfix) with ESMTPSA id 5641834C6D for ; Tue, 30 Jun 2009 20:42:32 -0400 (EDT) From: Pavel Roskin To: grub-devel@gnu.org Date: Tue, 30 Jun 2009 20:35:09 -0400 Message-ID: <20090701003509.25373.35314.stgit@mj.roinet.com> In-Reply-To: <20090701003502.25373.82948.stgit@mj.roinet.com> References: <20090701003502.25373.82948.stgit@mj.roinet.com> User-Agent: StGIT/0.14.3 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. Subject: [PATCH 2/3] Don't put modules without dependencies into moddep.lst X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Jul 2009 00:35:17 -0000 ChangeLog: * genmoddep.awk: Don't output lines that contain to dependencies. --- genmoddep.awk | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/genmoddep.awk b/genmoddep.awk index db8e07e..1bdf7f1 100644 --- a/genmoddep.awk +++ b/genmoddep.awk @@ -66,6 +66,8 @@ END { for (depmod in uniqmods) { modlist = modlist " " depmod; } - printf "%s:%s\n", mod, modlist >ENVIRON["MODDEP"]; + if (modlist != "") { + printf "%s:%s\n", mod, modlist >ENVIRON["MODDEP"]; + } } }