head	14.4;
access;
symbols
	stable-branch:14.3
	rel-7-4-2:14.3
	rel-7-4-branch:14.3.0.2
	rel-7-4-0:14.3
	rel-7-2-6:14.3
	rel-7-2-4:14.3
	rel-7-2-2:14.3
	rel-7-2-0:14.3
	rel-7-0-4:14.2
	rel-7-0-2:14.2
	rel-7-0-1:14.2
	opensource-post:14.2
	opensource-pre:1.1
	rel-7-0-branch:1.1.0.2
	rel-7-0:1.1;
locks; strict;
comment	@# @;


14.4
date	2005.07.17.00.58.12;	author brlcad;	state dead;
branches;
next	14.3;

14.3
date	2005.01.30.20.30.15;	author brlcad;	state Exp;
branches;
next	14.2;

14.2
date	2004.12.18.00.56.40;	author morrison;	state Exp;
branches;
next	14.1;

14.1
date	2004.11.16.19.42.12;	author morrison;	state Exp;
branches;
next	1.1;

1.1
date	2004.05.20.15.18.41;	author morrison;	state Exp;
branches;
next	;


desc
@@


14.4
log
@replace brlman with brlman.in template so that it may be decoupled from machinetype.sh and pathing issues
@
text
@#!/bin/sh
#                          B R L M A N
# BRL-CAD
#
# Copyright (C) 1991-2005 United States Government as represented by
# the U.S. Army Research Laboratory.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# 1. Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
#
# 2. Redistributions in binary form must reproduce the above 
# copyright notice, this list of conditions and the following
# disclaimer in the documentation and/or other materials provided
# with the distribution.
#
# 3. The name of the author may not be used to endorse or promote
# products derived from this software without specific prior written
# permission.
#
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS
# OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
# ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
# GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
# NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#
###
#
#  A substitute for the "man" command for those systems that do not
#  have NROFF.  Henry Spencer's "nroff -man" replacement called AWF
#  is used instead.
#
#  Michael John Muuss, BRL, 23-June-1991.
#
#  @@(#) $Header: /cvsroot/brlcad/brlcad/src/brlman/brlman,v 14.3 2005/01/30 20:30:15 brlcad Exp $ (BRL)

if test $# -lt 1
then
	echo "Usage: $0 command"
	echo "  To obtain help about that command"
	exit 1
fi

# Use MANPAGER, else use PAGER, else use "more" command.
MORE="more -s -f"
if test "$PAGER" != ""
then
	MORE="${PAGER}"
fi
if test "${MANPAGER}" != ""
then
	MORE="${MANPAGER}"
fi

eval `machinetype.sh -v`		# sets $BASEDIR

# Ensure that MANPATH is set and has BRL-CAD materials listed first.
MANPATH=${BASEDIR}/man:${MANPATH}

PATH_ELEMENTS=`echo ${MANPATH} | sed 's/^://
				s/:://g
				s/:$//
				s/:\\.:/:/g
				s/:/ /g'`

for PLACE in ${PATH_ELEMENTS}
do
	PATTERN="${PLACE}/man?/$1.?"
	TRY=`eval echo ${PATTERN}`
	if test "${TRY}" != "${PATTERN}"
	then
		# Found something(s), format it/them
		echo ${TRY}
		awf -man ${TRY} | ${MORE}
	fi
done

exit 0
@


14.3
log
@update copyright to 2005
@
text
@d44 1
a44 1
#  @@(#) $Header: /cvsroot/brlcad/brlcad/src/brlman/brlman,v 14.2 2004/12/18 00:56:40 morrison Exp $ (BRL)
@


14.2
log
@assign copyright and BSD license
@
text
@d5 1
a5 1
# Copyright (c) 1991-2004 United States Government as represented by
d44 1
a44 1
#  @@(#) $Header: /cvs/brlcad/src/brlman/brlman,v 14.1 2004/11/16 19:42:12 morrison Exp $ (BRL)
@


14.1
log
@dawn of a new revision.  it shall be numbered 14 to match release 7.  begin the convergence by adding emacs/vi local variable footer blocks to encourage consistent formatting.
@
text
@d2 35
a36 1
#			B R L M A N
a42 1
#  Public Domain, Distribution Unlimited
d44 1
a44 1
#  @@(#) $Header: /cvs/brlcad/src/brlman/brlman,v 1.1 2004/05/20 15:18:41 morrison Exp $ (BRL)
@


1.1
log
@Vast reorganization begins.  Sources moved from top-level directories into src/.
@
text
@d11 1
a11 1
#  @@(#) $Header: /cvs/brlcad/brlman/brlman,v 1.5 1998/08/22 23:45:33 mike Exp $ (BRL)
@

