From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1VlPBm-0001ix-2b for mharc-grub-devel@gnu.org; Tue, 26 Nov 2013 15:24:54 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46439) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VlPBj-0001ho-SY for grub-devel@gnu.org; Tue, 26 Nov 2013 15:24:52 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VlPBi-0001Bo-K0 for grub-devel@gnu.org; Tue, 26 Nov 2013 15:24:51 -0500 Received: from v6.chiark.greenend.org.uk ([2001:ba8:1e3::]:60958 helo=chiark.greenend.org.uk) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VlPBi-0001Bi-Do for grub-devel@gnu.org; Tue, 26 Nov 2013 15:24:50 -0500 Received: from [172.20.153.9] (helo=riva.pelham.vpn.ucam.org) by chiark.greenend.org.uk (Debian Exim 4.72 #1) with esmtps (return-path cjwatson@ubuntu.com) id 1VlPBg-0007ui-VZ for grub-devel@gnu.org; Tue, 26 Nov 2013 20:24:49 +0000 Received: from ns1.pelham.vpn.ucam.org ([172.20.153.2] helo=riva.ucam.org) by riva.pelham.vpn.ucam.org with esmtps (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from ) id 1VlPBg-00014q-2K for grub-devel@gnu.org; Tue, 26 Nov 2013 20:24:48 +0000 Date: Tue, 26 Nov 2013 20:24:46 +0000 From: Colin Watson To: grub-devel@gnu.org Subject: [PATCH 0/3] Eliminate the use of Autogen Message-ID: <20131126202446.GA1228@riva.ucam.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:ba8:1e3:: X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Nov 2013 20:24:52 -0000 I already mentioned this on IRC, but I thought it'd be helpful to send it here as well. This patch series (also in the cjwatson/new-autogen git branch) eliminates the use of Autogen and instead generates Automake input directly from gentpl.py. Autogen's definitions files were useful, and I've maintained compatibility with the relevant subset of them, but the template language was cumbersome; beyond a certain level of complexity it became necessary to use the Guile extensions, and the impedance mismatch between those and the Python template generation was considerable. It's simpler, much faster, and very much less confusing to generate Makefile.*.am directly. I've checked that this generates almost identical output, even when the modules from grub-extras are in use. The differences amount to a few unimportant things such as removal of trailing newlines, and the movement of a declarations block for libgnulib.a a bit further up the file; they are short enough to be easily reviewable and not significant enough to be worth contorting the generator code to avoid. Colin Watson (3): Generate Makefile.*.am directly from gentpl.py, eliminating the use of Autogen. The Autogen definitions files remain intact as they offer a useful abstraction. Show file name in error messages from AutogenParser. Handle #if/#endif and C-style comments in AutoGen definitions files. .gitignore | 1 - ChangeLog | 6 + INSTALL | 1 - autogen.sh | 11 +- conf/Makefile.common | 15 +- conf/Makefile.extra-dist | 1 - gentpl.py | 1050 ++++++++++++++++++++++++++++------------------ 7 files changed, 651 insertions(+), 434 deletions(-) -- 1.8.4.3