Path: utzoo!utgpu!news-server.csri.toronto.edu!clyde.concordia.ca!uunet!samsung!munnari.oz.au!csc!csc3!ccadfa!cancol!ross From: ross@cancol.oz (Ross Johnson) Newsgroups: comp.sys.apollo Subject: Re: Unix apropos command? Message-ID: <374@cancol.oz> Date: 7 May 90 05:46:11 GMT References: <9005041034.AA01244@unidui.uni-duisburg.de> Organization: Info. Sci. and Eng., University of Canberra Lines: 61 In article <9005041034.AA01244@unidui.uni-duisburg.de>, hj412fr@unidui.uni-duisburg.de (Frik) writes: > > > Anyone have an idea why my SR10.2 system's "apropos" command > does not have any information about any topic whatsoever when > run from a BSD4.3 C-shell? My other Unix based systems (Alliant, > Sun) seem to have a reasonable database of 'apropriate' information. > > > -- David Krowitz > > I think you need to run makewhatis. > > Martin Anantharaman > That's true, but makewhatis doesn't do the Apollo specific pages correctly. Anyone who knows ksh (I don't) can do the fix easily, but here's my patch anyway. +----------------------+---+ | Ross Johnson | | ACSnet ross@ucisae.isae.cancol.oz.au | Info Sciences and Eng|___| ARPA ross%ucisae.isae.cancol.oz.au@uunet.uu.net | University of Canberra | UUCP uunet!munnari!ucisae.isae.cancol.oz!ross | PO Box 1 | CSNET ross%ucisae.isae.cancol.oz@australia | Belconnen ACT 2616 | JANET ross%au.oz.cancol.isae.ucisae@EAN-RELAY | AUSTRALIA | BITNET ross%ucisae.isae.cancol.oz.au@relay.cs.net +--------------------------+ --------------------------------cut here---------------------------------- *** makewhatis.orig Sun May 6 20:15:22 1990 --- makewhatis Mon May 7 11:10:39 1990 *************** *** 90,103 **** [ -f $OLDPWD/man$part/$file ] && continue # already in unformatted exec 3<$file # open the file text="" ! while read -u3 - line ; do ! [ "$line" = "NAME" ] && break done ! while read -u3 - line ; do ! [ "$line" = "SYNOPSIS" \ ! -o "$line" = "DESCRIPTION" \ ! -o "$line" = "SYNTAX" ] && break ! text="$text $line" done [ -n "$text" ] && print -u4 -R "${text%%-*}($suf) -${text#*-}" exec 3<&- # close the file --- 90,103 ---- [ -f $OLDPWD/man$part/$file ] && continue # already in unformatted exec 3<$file # open the file text="" ! while read -u3 - firstw rest ; do ! [ "$firstw" = "NAME" ] && break done ! while read -u3 - firstw rest ; do ! [ "$firstw" = "SYNOPSIS" \ ! -o "$firstw" = "DESCRIPTION" \ ! -o "$firstw" = "SYNTAX" ] && break ! text="$text $firstw $rest" done [ -n "$text" ] && print -u4 -R "${text%%-*}($suf) -${text#*-}" exec 3<&- # close the file