Return-Path: Mailing-List: contact cvs-help@apr.apache.org; run by ezmlm Delivered-To: mailing list cvs@apr.apache.org Received: (qmail 28204 invoked by uid 500); 12 Dec 2000 13:46:06 -0000 Delivered-To: apmail-apr-util-cvs@apache.org Received: (qmail 28199 invoked from network); 12 Dec 2000 13:46:05 -0000 Received: from mail2.bna.bellsouth.net (205.152.150.14) by locus.apache.org with SMTP; 12 Dec 2000 13:46:05 -0000 Received: from adsl-77-241-65.rdu.bellsouth.net (adsl-77-241-65.rdu.bellsouth.net [216.77.241.65]) by mail2.bna.bellsouth.net (3.3.5alt/0.75.2) with ESMTP id IAA09037; Tue, 12 Dec 2000 08:46:04 -0500 (EST) Received: (from trawick@localhost) by adsl-77-241-65.rdu.bellsouth.net (8.9.3/8.8.7) id IAA13638; Tue, 12 Dec 2000 08:40:34 -0500 X-Authentication-Warning: adsl-77-241-65.rdu.bellsouth.net: trawick set sender to trawickj@bellsouth.net using -f Sender: trawick@bellsouth.net To: dev@apr.apache.org Cc: apr-util-cvs@apache.org Subject: Re: cvs commit: apr-util Makefile.in References: <20001212110534.95606.qmail@locus.apache.org> From: Jeff Trawick Date: 12 Dec 2000 08:40:33 -0500 In-Reply-To: gstein@locus.apache.org's message of "12 Dec 2000 11:05:34 -0000" Message-ID: Lines: 47 User-Agent: Gnus/5.0807 (Gnus v5.8.7) Emacs/20.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N gstein@locus.apache.org writes: > gstein 00/12/12 03:05:33 > > Modified: . Makefile.in > Log: > auto-rebuild the exports file when a header changes > > Revision Changes Path > 1.6 +14 -3 apr-util/Makefile.in > > Index: Makefile.in > =================================================================== > RCS file: /home/cvs/apr-util/Makefile.in,v > retrieving revision 1.5 > retrieving revision 1.6 > diff -u -u -r1.5 -r1.6 > --- Makefile.in 2000/12/06 05:02:13 1.5 > +++ Makefile.in 2000/12/12 11:05:32 1.6 ... > @@ -33,7 +34,17 @@ > echo $(LINK) $$objects ; \ > $(LINK) -rpath $(libdir) $$objects > > -aprutil.exports: > +delete-exports: > + @if test -f $(TARGET_EXPORTS); then \ > + headers="`find include/*.h -maxdepth 0 -newer $(TARGET_EXPORTS)`" ; \ > + if test -n "$$headers"; then \ > + echo Found newer headers. Will rebuild $(TARGET_EXPORTS). ; \ > + echo $(RM) -f $(TARGET_EXPORTS) ; \ > + $(RM) -f $(TARGET_EXPORTS) ; \ > + fi \ > + fi This breaks FreeBSD (3.4, at least), which doesn't support "find -maxdepth". If I understand correctly, "-maxdepth 0" isn't really necessary here because there will be no directories fed to find so there can't be any traversal (no chance to test at the moment though; maybe in an hour when I get back from an errand). -- Jeff Trawick | trawickj@bellsouth.net | PGP public key at web site: http://www.geocities.com/SiliconValley/Park/9289/ Born in Roswell... married an alien...