|
|
DataMuseum.dkPresents historical artifacts from the history of: Regnecentalen RC-900 |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about Regnecentalen RC-900 Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - downloadIndex: T u
Length: 1497 (0x5d9)
Types: TextFile
Names: »usr/bin/man «
└─⟦307897ef0⟧ Bits:30004042/core1.imd SW95705I 386/ix Multi-user Release 1.2
└─⟦this⟧ »usr/bin/man «
# Copyright (c) 1984 AT&T
# All Rights Reserved
# THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF AT&T
# The copyright notice above does not evidence any
# actual or intended publication of such source code.
#ident "@(#)man:man.sh 1.4"
# Catable manual entries printer
#
BASE=/usr
sec=\?
dir=
col=
cmd=
all=
entries=
TTERM=
# parse options
for i in $*
do case $i in
[1-8]) sec=$i ;;
-c) col=col ;;
-d) dir=. ;;
-w) cmd=w ;;
-T*) TERM="`echo $i | sed 's/-T//'`" ;;
-12) TTERM=-12 ;;
*) entries="$entries $i" ;;
esac
done
# now find the named entries
for i in $entries
do
if [ "$dir" = "." ]
then if [ ! -r "$i" ]
then echo $0: $i not found >&2
exit 1
else all="$all $i"
fi
else
cd $BASE/catman
fil="`find */man$sec/$i.* -print 2>/dev/null`"
if [ -n "$fil" ]
then all="$all $fil"
else echo $0: $i not found >&2
exit 1
fi
fi
done
# fix up the terminal type option (make sure to use col, etc.)
case "$TERM$TTERM" in
300|300s|450|37|300-12|300s-12|450-12| \
4000a|4000A|382|1620|1620-12) post="greek -T$TERM$TTERM" ;;
hp|2621|2645|2640) col=col; post="greek -T$TERM$TTERM" ;;
4014|tek) post="greek -T$TERM$TTERM" ;;
*) col=col; post=cat ;;
esac
if [ "$col" != "" ]
then post="$col | $post"
fi
# now print the pages
if [ "$cmd" = "w" ]
then echo $all
exit 0
else for i in $all
do case $i in
*.z) eval "pcat $i | $post" ;;
*) eval "cat $i | $post" ;;
esac
done
fi