From owner-freebsd-questions@FreeBSD.ORG Wed Mar 26 23:24:13 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C625237B404 for ; Wed, 26 Mar 2003 23:24:13 -0800 (PST) Received: from mailsrv.otenet.gr (mailsrv.otenet.gr [195.170.0.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id A730543F3F for ; Wed, 26 Mar 2003 23:24:11 -0800 (PST) (envelope-from keramida@ceid.upatras.gr) Received: from gothmog.gr (patr530-b209.otenet.gr [212.205.244.217]) by mailsrv.otenet.gr (8.12.8/8.12.8) with ESMTP id h2R7O5h1024195 for ; Thu, 27 Mar 2003 09:24:08 +0200 (EET) Received: from gothmog.gr (gothmog [127.0.0.1]) by gothmog.gr (8.12.8/8.12.8) with ESMTP id h2R7O3Tr001111 for ; Thu, 27 Mar 2003 09:24:03 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Received: (from giorgos@localhost) by gothmog.gr (8.12.8/8.12.8/Submit) id h2R7D6c0000906 for freebsd-questions@FreeBSD.org; Thu, 27 Mar 2003 09:13:06 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Date: Thu, 27 Mar 2003 09:13:06 +0200 From: Giorgos Keramidas To: freebsd-questions@FreeBSD.org Message-ID: <20030327071306.GA680@gothmog.gr> References: <20030325194800.GA60649@moo.holy.cow> <20030325233934.GD2387@gothmog.gr> <20030326172343.GA32486@moo.holy.cow> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030326172343.GA32486@moo.holy.cow> X-RAVMilter-Version: 8.4.2(snapshot 20021217) (terpsi) X-Spam-Status: No, hits=-25.3 required=5.0 tests=AWL,EMAIL_ATTRIBUTION,IN_REP_TO,QUOTED_EMAIL_TEXT, RCVD_IN_UNCONFIRMED_DSBL,REFERENCES,REPLY_WITH_QUOTES autolearn=ham version=2.50 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) Subject: Re: /usr/share/man - Rules for showing/gernerating manual pages X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Mar 2003 07:24:16 -0000 On 2003-03-26 12:23, parv wrote: >in message <20030325233934.GD2387@gothmog.gr>, >wrote Giorgos Keramidas thusly... >> But you can safely delete (or simply move away) the existing >> /usr/share directory right before `make installworld'... >> >> # cd /usr >> # mv share share.old >> # mtree -deU < /etc/mtree/BSD.usr.dist >> >> and then run `make installworld' in /usr/src. After installworld >> finishes successfully, you can delete share.old. > > Giorgos, i would that the next time; thanks. > > Having said that, i was hoping for something like the following (for > FreeBSD)... > > http://groups.google.com/groups?selm=2d543m%24n30%40mail.boku.ac.at Ah, yes. Now I see that I misread the original post. Well, man(1) in FreeBSD is a slightly modified version of GNU man. The basic idea of locating a manpage and convnerting it to a preformatted ``cat page'' remains the same. The details of the conversion can always be found in /usr/src/gnu/usr.bin/man/man/man.c (look at the definition of the glob_for_filename() and try_section() functions in this file). It's pretty much the same as the post you quoted above. Some of the information that you want to find out is actually part of the output of this command: $ man -d ls 2>&1 | more I hope this time, I'm not very off-topic :) - Giorgos