From owner-freebsd-ports Sun Sep 19 10:10:46 1999 Delivered-To: freebsd-ports@freebsd.org Received: from mail.cs.tu-berlin.de (mail.cs.tu-berlin.de [130.149.17.13]) by hub.freebsd.org (Postfix) with ESMTP id 3B30515060 for ; Sun, 19 Sep 1999 10:10:30 -0700 (PDT) (envelope-from eserte@cs.tu-berlin.de) Received: (from eserte@localhost) by mail.cs.tu-berlin.de (8.9.1/8.9.1) id TAA21036; Sun, 19 Sep 1999 19:05:49 +0200 (MET DST) Received: (from eserte@localhost) by cabulja.herceg.de (8.9.3/8.6.12) id JAA00658; Sun, 19 Sep 1999 09:14:40 +0200 (CEST) To: Andrew Boothman Cc: freebsd-ports@freebsd.org Subject: Re: Building a page of installed software docs References: Reply-To: eserte@cs.tu-berlin.de From: Slaven Rezic Date: 19 Sep 1999 09:14:40 +0200 In-Reply-To: Andrew Boothman's message of Sat, 18 Sep 1999 23:22:22 +0100 (BST) Message-ID: <87vh97fk4f.fsf@cabulja.herceg.de> Lines: 54 X-Mailer: Gnus v5.3/Emacs 19.34 Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Andrew Boothman 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 > > > >

archivers/bzip2

> > > >
    > >
  • User Manual [HTML] > > [TXT] > > [PS]
  • > >
> > 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