Date: 19 Sep 1999 09:14:40 +0200 From: Slaven Rezic <eserte@cs.tu-berlin.de> To: Andrew Boothman <andrew@cream.org> Cc: freebsd-ports@freebsd.org Subject: Re: Building a page of installed software docs Message-ID: <87vh97fk4f.fsf@cabulja.herceg.de> In-Reply-To: Andrew Boothman's message of Sat, 18 Sep 1999 23:22:22 %2B0100 (BST) References: <XFMail.990918232222.andrew@cream.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Andrew Boothman <andrew@cream.org> writes: > > > On 15-Sep-99 Nik Clayton wrote: > > Thinking about it, this should probably not be limited to just the HTML > > documentation that's installed. There's no reason why bzip2 couldn't > > have a pkg/URLS file that looked something like > > > > ${PREFIX}/share/doc/bzip2/manual_toc.html:HTML:User manual > > ${PREFIX}/share/doc/bzip2/manual.ps:PS:User manual > > ${PREFIX}/share/doc/bzip2/manual.txt:TXT:User manual > > > > which would turn in to > > > > <h3>archivers/bzip2</h3> > > > > <ul> > > <li>User Manual [<a href="file:/.../manual_toc.html">HTML</a>] > > [<a href="file:/.../manual.txt">TXT</a>] > > [<a href="file:/.../manual.ps">PS</a>]</li> > > </ul> > > OK. I had a spare few minutes, so I threw together the following script : > [...] > > It goes through the /var/db/pkg directory, looking for the ports that have our > new 'DOCS' file, which is in the format of : > > FAQ txt /usr/local/share/doc/Sharity-Light/FAQ > README txt /usr/local/share/doc/Sharity-Light/README > > I made this file up for Sharity Light as an example. If the port has a docs > file, then the script produces a nice set of links to each type of > documentation. > > Nik, is this what you had in mind? > > Any comments gladly recieved!! > Nice. I think that the delimiter character should be a colon or even better a vertical bar (|), because it'll be fairly common to use whitespace in the document title. Regards, Slaven -- use Tk;$c=tkinit->Canvas(-he,20)->grid;$x=5;map{s/\n//g;map{$c->create('line'=> map{$a=-43+ord;($x+($a>>3)*2=>5+($a&7)*2)}split//)}split/!/;$x+=12}split/_/=>'K PI1_+09IPK_K;-OA1_+K!;A__1;Q!7G_1+QK_3CLPI90,_+K!;A_+1!KQ!.N_K+1Q!.F_1+KN.Q__1+ KN._K+1Q!.F_1+KN.Q_+1Q__+1!KQ!.N_1;Q!7G_K3,09Q_+1!K.Q_K+1Q!.F_1+KN.Q_';MainLoop To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?87vh97fk4f.fsf>