From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4116 invoked by alias); 5 Oct 2007 17:59:22 -0000 Received: (qmail 4108 invoked by uid 22791); 5 Oct 2007 17:59:21 -0000 X-Spam-Check-By: sourceware.org Received: from NaN.false.org (HELO nan.false.org) (208.75.86.248) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 05 Oct 2007 17:59:20 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id 0E8A898336 for ; Fri, 5 Oct 2007 17:59:19 +0000 (GMT) Received: from caradoc.them.org (22.svnf5.xdsl.nauticom.net [209.195.183.55]) by nan.false.org (Postfix) with ESMTP id EC2A2981F1 for ; Fri, 5 Oct 2007 17:59:18 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.67) (envelope-from ) id 1IdrSI-0001Ak-2r for gdb-patches@sourceware.org; Fri, 05 Oct 2007 13:59:18 -0400 Date: Fri, 05 Oct 2007 17:59:00 -0000 From: Daniel Jacobowitz To: gdb-patches@sourceware.org Subject: Re: [rfc] Pre-parse XML target descriptions Message-ID: <20071005175918.GE26041@caradoc.them.org> Mail-Followup-To: gdb-patches@sourceware.org References: <20071005153350.GA23583@caradoc.them.org> <20071005174009.GA3182@caradoc.them.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.15 (2007-04-09) X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2007-10/txt/msg00063.txt.bz2 On Fri, Oct 05, 2007 at 10:52:39AM -0700, Jim Blandy wrote: > I think you're imagining something more complicated than I had in > mind. This is all I meant: > > gdb: check-xml-regs > > check-xml-regs: foo.check-xml-regs-stamp bar.check-xml-regs-stamp > > %.check-xml-regs-stamp: %.xml %.c > stamp=$$(sed -ne 's|/. stamp: \(.*\) ./|\1|p' < $*.c); \ > if [ "$$(md5sum $*.xml)" = "$$stamp" ]; then \ > touch $@; \ > else \ > echo '.c file must be regenerated from .xml: $*.c' >&2; \ > exit 1; \ > fi I think you're not checking what you think you are: there's dependencies between the XML files so checksumming them does not much help unless you have xsltproc or expat to expand . -- Daniel Jacobowitz CodeSourcery