[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

BOUNCE rtl@rtlinux.org: Approval required: (fwd)



>From owner-rtl Sun Jul 15 06:45:04 2001
Received: from 3dsite.com (root@3dsite.com [209.55.67.88])
	by localhost.fsmlabs.com (8.11.2/8.11.2) with ESMTP id f6FCj4U06067
	for <rtl@rtlinux.org>; Sun, 15 Jul 2001 06:45:04 -0600
Received: from 3dsite.com (63-102-154-9.mal-dyn.charterpipeline.com [63.102.154.9])
	by 3dsite.com (8.9.1/8.9.1) with ESMTP id FAA22305
	for <rtl@rtlinux.org>; Sun, 15 Jul 2001 05:42:56 -0700 (PDT)
Sender: erco@3dsite.com
Message-ID: <3B51901F.E8567164@3dsite.com>
Date: Sun, 15 Jul 2001 05:44:15 -0700
From: Greg Ercolano <erco@3dsite.com>
X-Mailer: Mozilla 4.7C-SGI [en] (X11; I; IRIX 6.2 IP22)
X-Accept-Language: en
MIME-Version: 1.0
To: rtl@rtlinux.org
Subject: RTL 3.0 RFE: set MANPATH to include rtl manpages
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

   On the RTL 3.0 CD, the default user environment 
   should likely include access the rtlinux manpages. 

   By default, they currently don't work, eg:
____________________________________________________________

% man rtf_get
No manual entry for rtf_get		%^(

% setenv MANPATH :/usr/rtlinux-3.0/rtldoc-3.0/man

% man rtf_get

rtf_get(3)				8^)

NAME
       rtf_get -- read data from a realtime fifo
:
:
____________________________________________________________

    On my own system I've added at the bottom of /etc/csh.cshrc:

	if ( $?MANPATH ) then
	    setenv MANPATH "${MANPATH}:/usr/rtlinux/man"
	else
	    setenv MANPATH :/usr/rtlinux/man
	endif

    ..and the following at the bottom of /etc/profile:

	if [ -z "$MANPATH" ]; then
	    export MANPATH=:/usr/rtlinux/man
	else
	    export MANPATH="${MANPATH}:/usr/rtlinux/man"
	fi

    This ensures all bash/csh/tcsh login accounts get working
    rtlinux manpages.

    Either that, or add the above settings to the appropriate
    files in /etc/skel/, eg. .cshrc and .bashrc.

    Also, so that commands like 'man -k rtl' work, similar 
    mods should likely be made to these cron files:

	/etc/cron.daily/makewhatis.cron
	/etc/cron.weekly/makewhatis.cron

    eg:

	#!/bin/bash
	LOCKFILE=/var/lock/makewhatis.lock
	if [ -z "$MANPATH" ]; then				####
	    export MANPATH=:/usr/rtlinux/man			  ##
	else							  ## ADD THESE
	    export MANPATH="${MANPATH}:/usr/rtlinux/man"	  ##
	fi							####
	[..snip..]
	makewhatis -w

    This way the makewhatis database picks up the rtlinux 
    manpages too.

    Note these settings do not break the default linux manpages; 
    the leading ':' ensures they are simply augmented.

-- 

   \___/
   |o,o|
 \/    )
----mm---------------------------------------------------------------------
Greg Ercolano                    UNIX NightOwl / Systems Programmer & Admin
erco@3dsite.com                              http://3dsite.com/people/erco/
---------------------------------------------------------------------------

----- End of forwarded message from owner-rtl@fsmlabs.com -----