"make readmes" no longer builds individual ports' README.html files?

Conrad J. Sabatier conrads at cox.net
Tue Aug 9 21:23:59 UTC 2011


On Tue, 9 Aug 2011 12:53:28 +0100
RW <rwmaillists at 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 at cox.net


More information about the freebsd-ports mailing list