From owner-freebsd-ports@FreeBSD.ORG Tue Aug 9 21:23:59 2011 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 10B0A1065670 for ; Tue, 9 Aug 2011 21:23:59 +0000 (UTC) (envelope-from conrads@cox.net) Received: from eastrmfepo203.cox.net (eastrmfepo203.cox.net [68.230.241.218]) by mx1.freebsd.org (Postfix) with ESMTP id A3AC38FC14 for ; Tue, 9 Aug 2011 21:23:58 +0000 (UTC) Received: from eastrmimpo03.cox.net ([68.1.16.126]) by eastrmfepo203.cox.net (InterMail vM.8.01.04.00 201-2260-137-20101110) with ESMTP id <20110809212352.YTVH32702.eastrmfepo203.cox.net@eastrmimpo03.cox.net>; Tue, 9 Aug 2011 17:23:52 -0400 Received: from serene.no-ip.org ([98.164.83.25]) by eastrmimpo03.cox.net with bizsmtp id JMPr1h00z0YnB6A02MPsuU; Tue, 09 Aug 2011 17:23:52 -0400 X-CT-Class: Clean X-CT-Score: 0.00 X-CT-RefID: str=0001.0A020204.4E41A568.00C4,ss=1,re=0.000,fgs=0 X-CT-Spam: 0 X-Authority-Analysis: v=1.1 cv=mwl0/2xM3ubHJTXa6l4kGPt5l4r2ytuQtfJUKIGJKFg= c=1 sm=1 a=93kD_w7VSpYA:10 a=G8Uczd0VNMoA:10 a=kj9zAlcOel0A:10 a=2vO5UZG1h46htWAnE/rx2g==:17 a=mK_AVkanAAAA:8 a=kviXuzpPAAAA:8 a=gL_q-aqJLxOLGqVPH-QA:9 a=rGkaPIWeVryIza4f2DUA:7 a=CjuIK1q_8ugA:10 a=9xyTavCNlvEA:10 a=4vB-4DCPJfMA:10 a=2vO5UZG1h46htWAnE/rx2g==:117 X-CM-Score: 0.00 Authentication-Results: cox.net; none Date: Tue, 9 Aug 2011 16:23:48 -0500 From: "Conrad J. Sabatier" To: freebsd-ports@FreeBSD.org Message-ID: <20110809162348.1d87c72e@serene.no-ip.org> In-Reply-To: <20110809125328.1b994d99@gumby.homeunix.com> References: <20110808223535.64fa91d1@serene.no-ip.org> <20110809125328.1b994d99@gumby.homeunix.com> X-Mailer: Claws Mail 3.7.9 (GTK+ 2.24.5; amd64-portbld-freebsd9.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: rwmaillists@googlemail.com Subject: Re: "make readmes" no longer builds individual ports' README.html files? 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: Tue, 09 Aug 2011 21:23:59 -0000 On Tue, 9 Aug 2011 12:53:28 +0100 RW wrote: > On Mon, 8 Aug 2011 22:35:35 -0500 > Conrad J. Sabatier wrote: > > > > Trying to construct the ports' README.html files with: > > > > cd /usr/ports > > make readmes > > > > Much to my surprise, this only creates README.html at the top level > > and within each category, but nothing under the individual ports' > > directories. When did this change, and why? Mailing list search > > has turned up nothing useful on the subject. > > When you "make readmes" from the top level the per port files are > created by a perl script > > I tried running > > perl /usr/ports/Tools/make_readmes < /usr/ports/INDEX-8 > > and it didn't work. Since it's quite old I would guess a perl upgrade > has probably broken it. Yes, it does indeed seem to be broken. Bummer, dude. :-) I hacked together a little quick-and-dirty script last night that did the job. Yeah, I know, using find's "-exec" is not as efficient as xargs, but I did say it was "quick-and-dirty". At least it does call the static version of sh under /rescue. :-): #!/bin/sh # # makereadmes # # force all ports' (with some exclusions) README.html files to be # created # ################################################################## find /usr/ports -type d -depth 2 \ ! -path "*/Mk/*" \ ! -path "*/Templates/*" \ ! -path "*/Tools/*" \ ! -path "*/distfiles/*" \ ! -path "*/arabic/*" \ ! -path "*/chinese/*" \ ! -path "*/hebrew/*" \ ! -path "*/hungarian/*" \ ! -path "*/japanese/*" \ ! -path "*/korean/*" \ ! -path "*/palm/*" \ ! -path "*/polish/*" \ ! -path "*/portuguese/*" \ ! -path "*/russian/*" \ ! -path "*/ukrainian/*" \ ! -path "*/vietnamese/*" \ -exec /rescue/sh -c "cd {} && make readme" \; # all ports categories listed below (paste in above to exclude) # #accessibility #arabic #archivers #astro #audio #benchmarks #biology #cad #chinese #comms #converters #databases #deskutils #devel #dns #editors #emulators #finance #french #ftp #games #german #graphics #hebrew #hungarian #irc #japanese #java #korean #lang #mail #math #misc #multimedia #net-im #net-mgmt #net-p2p #net #news #palm #polish #ports-mgmt #portuguese #print #russian #science #security #shells #sysutils #textproc #ukrainian #vietnamese #www #x11-clocks #x11-drivers #x11-fm #x11-fonts #x11-servers #x11-themes #x11-toolkits #x11-wm #x11 -- Conrad J. Sabatier conrads@cox.net