Date: Fri, 3 Nov 2006 20:40:59 +0900 (JST) From: Curtis Jewell <swordsman@csjewell.fastmail.us> To: Michel Talon <talon@lpthe.jussieu.fr> Cc: freebsd-ports@freebsd.org Subject: Re: Building the README.html's (was Re: Building the INDEX) Message-ID: <20061103202506.V9597@lap.curtisjewell.boldlygoingnowhere.org> In-Reply-To: <20061102155934.GA64597@lpthe.jussieu.fr> References: <20061102155934.GA64597@lpthe.jussieu.fr>
next in thread | previous in thread | raw e-mail | index | archive | help
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Thu, 2 Nov 2006, Michel Talon wrote: >> Speaking of "make index", I do a "make >> TEMPLATES=/root/.update-ports/templates/ readmes" at the top level >> (/usr/ports) and the perl program doesn't respect the TEMPLATES dir... the >> top level and the categories use the template, the individual ports do >> not. > > By the way, what do you think of the idea, instead of polluting the > ports tree with README.html everywhere, to have a simple script which > dynamically computes the page you want to look? All the information is > in the INDEX file, hence can be extracted instantaneously. It's only a > question of having pretty templates to show something nice, and a simple > http server. For example i know this is trivial to do with python > BaseHTTPServer, but it should be as trivial with perl or other similar > tool. I *like* that idea... should such a script be in the ports tree as a port? I'll write it (in perl, it's what I happen to know and write in) if it's wanted. (I actually hook my ports tree into Apache at the moment for that http server, but I have Apache up for other purposes, anyway - see the site in my signature.) (Not that we shouldn't fix what's there. As long as we're providing it, we should fix the bugs. I'm testing my patches now. They're a +1 -1 patch to Mk/bsd.port.subdir.mk and a +2 -1 patch to Tools/make_readmes, by the way) - -- Curtis Jewell https://lap.curtisjewell.boldlygoingnowhere.org/ swordsman@csjewell.fastmail.us "Killed enough? ... Yes, Your Highness, I think we all have." --John Patrick Ryan (from 'The Sum Of All Fears', Tom Clancy) [I use Pine, which deliberately does not display colors and pictures in HTML mail] -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (FreeBSD) iD8DBQFFSyrLvCi+150VKIMRAqZdAJ9ozd42epZCV8yfHJHBlytc5oFBpwCfccrl o161+dxwuqlegxYQjVOUgWA= =YS4D -----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20061103202506.V9597>