From owner-freebsd-ports@FreeBSD.ORG Thu Feb 2 21:44:25 2012 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B8701106564A for ; Thu, 2 Feb 2012 21:44:25 +0000 (UTC) (envelope-from conrads@cox.net) Received: from eastrmfepo201.cox.net (eastrmfepo201.cox.net [68.230.241.216]) by mx1.freebsd.org (Postfix) with ESMTP id 4DAD78FC15 for ; Thu, 2 Feb 2012 21:44:25 +0000 (UTC) Received: from eastrmimpo109.cox.net ([68.230.241.222]) by eastrmfepo201.cox.net (InterMail vM.8.01.04.00 201-2260-137-20101110) with ESMTP id <20120202214419.MEFR4752.eastrmfepo201.cox.net@eastrmimpo109.cox.net>; Thu, 2 Feb 2012 16:44:19 -0500 Received: from serene.no-ip.org ([98.164.86.55]) by eastrmimpo109.cox.net with bizsmtp id V9kJ1i00E1BeFqy029kKQp; Thu, 02 Feb 2012 16:44:19 -0500 X-CT-Class: Clean X-CT-Score: 0.00 X-CT-RefID: str=0001.0A020202.4F2B03B3.0073,ss=1,re=0.000,fgs=0 X-CT-Spam: 0 X-Authority-Analysis: v=1.1 cv=EYzcOfuzocFB4Uh5a8S+SAtfBMCIXs4UTLohtyR2Crs= c=1 sm=1 a=ojH9cbcSZWsA:10 a=G8Uczd0VNMoA:10 a=kj9zAlcOel0A:10 a=fdHYxQQoAueMHNSmXppgDg==:17 a=ddqU6GQIAAAA:8 a=kviXuzpPAAAA:8 a=QoBvjp_aCF-pN-UyZEYA:9 a=gme3LPbmA21TpI6wHPYA:7 a=CjuIK1q_8ugA:10 a=wLODFksJ6qEA:10 a=4vB-4DCPJfMA:10 a=fdHYxQQoAueMHNSmXppgDg==:117 X-CM-Score: 0.00 Authentication-Results: cox.net; none Received: from cox.net (localhost [127.0.0.1]) by serene.no-ip.org (8.14.5/8.14.5) with ESMTP id q12LiILN049744; Thu, 2 Feb 2012 15:44:18 -0600 (CST) (envelope-from conrads@cox.net) Date: Thu, 2 Feb 2012 15:44:13 -0600 From: "Conrad J. Sabatier" To: Jason Helfman Message-ID: <20120202154413.324977a8@cox.net> In-Reply-To: <20120202212512.GE19714@dormouse.experts-exchange.com> References: <20111203173149.224a64e6@cox.net> <20111214004838.GK1593@dormouse.experts-exchange.com> <20120112212905.GA78819@dormouse.experts-exchange.com> <20120127200325.66f36090@cox.net> <20120128143734.6166f5fc@gumby.homeunix.com> <20120128102831.51cf0f63@cox.net> <4F2427FD.2000900@infracaninophile.co.uk> <20120202152137.21b638d0@cox.net> <20120202212512.GE19714@dormouse.experts-exchange.com> X-Mailer: Claws Mail 3.8.0 (GTK+ 2.24.6; amd64-portbld-freebsd10.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-ports@freebsd.org Subject: Re: A new and better way to do "make readmes"? X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Feb 2012 21:44:25 -0000 On Thu, 2 Feb 2012 13:25:14 -0800 Jason Helfman wrote: > On Thu, Feb 02, 2012 at 03:21:37PM -0600, Conrad J. Sabatier thus > spake: [snip] > >The workaround method I've been running out of cron for the last > >month or so is: > > > >1) Create a "sentinel" file under /tmp to use as a timestamp, just > >before running "cvs update" on ports (I update my ports tree from a > >local copy of the CVS repo maintained via csup) > > > >2) After cvs completes, look for any port directories containing > >updates (check timestamps against the sentinel file) and do a "make > >readme" for each one: > > > >find $PORTSDIR -type f ! -path "*/CVS/*" -newercm $SENTINEL -depth 3 > >| > > xargs dirname | > > sort -u | xargs -I@ /bin/sh -c "cd @ && make readme" > > > >3) Last, but not least, build the category README.html for any > >categories with ports containing newly updated README.html files. > > > >I have noticed while doing this that, as you mentioned, the category > >READMEs take considerably longer than the individual ports'. > > > >I don't even bother to rebuild the top-level file, since it's > >basically unchanging anyway. [snip] > Not to fancy, but I used this when I was updating the readmes to not > break. > > #!/bin/sh > cd /usr/ports > for i in `make -V SUBDIR |sed s/local//g`; do for p in `make -C $i -V > SUBDIR`; do echo $i/$p && sudo make -C "$i/$p" readme ; done; done > >> ~/readmes.log > > -jgh Interesting. I'll take a look at using that. Thanks! -- Conrad J. Sabatier conrads@cox.net