Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1MM8OJ-0007Bz-AM for mharc-grub-devel@gnu.org; Wed, 01 Jul 2009 18:34:59 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MM8OI-0007BK-0j for grub-devel@gnu.org; Wed, 01 Jul 2009 18:34:58 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MM8OC-00078u-7Y for grub-devel@gnu.org; Wed, 01 Jul 2009 18:34:56 -0400 Received: from [199.232.76.173] (port=52716 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MM8OC-00078n-1N for grub-devel@gnu.org; Wed, 01 Jul 2009 18:34:52 -0400 Received: from vader.rez-gif.supelec.fr ([160.228.154.1]:36359) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MM8OB-0004CG-JZ for grub-devel@gnu.org; Wed, 01 Jul 2009 18:34:51 -0400 Received: from localhost (localhost [127.0.0.1]) by vader.rez-gif.supelec.fr (Postfix) with ESMTP id AAB9D2C6A56 for ; Thu, 2 Jul 2009 00:34:46 +0200 (CEST) X-Virus-Scanned: amavisd-new at rez-gif.supelec.fr Received: from vader.rez-gif.supelec.fr ([127.0.0.1]) by localhost (vader.rez-gif.supelec.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id v-8mUVmjJCxC for ; Thu, 2 Jul 2009 00:34:43 +0200 (CEST) Received: from [127.0.0.1] (duboucher2.rez-gif.supelec.fr [160.228.159.225]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by vader.rez-gif.supelec.fr (Postfix) with ESMTPS id 9F4B92C6A55 for ; Thu, 2 Jul 2009 00:34:43 +0200 (CEST) Message-ID: <4A4BE47C.7060602@duboucher.eu> Date: Thu, 02 Jul 2009 00:34:36 +0200 From: Duboucher Thomas User-Agent: Thunderbird 2.0.0.22 (Windows/20090605) MIME-Version: 1.0 To: grub-devel@gnu.org X-Enigmail-Version: 0.95.7 OpenPGP: id=A79F86A8 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Subject: Bug in gencmdlist.sh (or is it?) 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 22:34:58 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, I was working on some Grub2 module a few days ago and I spent a lot of time on this. Basically, I was unable to correctly generate the file command.lst; my new commands simply didn't appeared in it. I finally found that gencmdlist.sh is only processing line per line using sed, so that if one is writing with a different indentation, the script silently fail. For instance, > grub_extcmd > ( > "foo", does not produce any output. I am working now with a small script written in Lua, but it is neither efficient, nor a good idea to add Lua as a dependency. Perhaps a sed guru can have a look at this? Thomas. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkpL5HwACgkQBV7eXqefhqg3hwCfX4Fn6icORyZKygqZJo1eqwWH LSAAnjUCLniZX9pu0OCp4CV7EEjNXAp7 =AKuH -----END PGP SIGNATURE-----