Date: Tue, 9 Aug 2011 16:23:48 -0500 From: "Conrad J. Sabatier" <conrads@cox.net> To: freebsd-ports@FreeBSD.org Cc: rwmaillists@googlemail.com Subject: Re: "make readmes" no longer builds individual ports' README.html files? 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>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 9 Aug 2011 12:53:28 +0100 RW <rwmaillists@googlemail.com> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20110809162348.1d87c72e>