home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / unix / bsd / 4825 < prev    next >
Encoding:
Internet Message Format  |  1992-08-29  |  4.2 KB

  1. Path: sparky!uunet!sun-barr!ames!data.nas.nasa.gov!taligent!apple!motcsd!xhost92.csd.mot.com!ajv
  2. From: ajv@xhost92.csd.mot.com
  3. Newsgroups: comp.unix.bsd
  4. Subject: whatis
  5. Message-ID: <7023@motcsd.csd.mot.com>
  6. Date: 28 Aug 92 20:49:45 GMT
  7. Sender: usenet@motcsd.csd.mot.com
  8. Lines: 81
  9.  
  10. Enclosed is my modification to makewhatis.sed.  It understands the
  11. new way of underlining which groff uses, and it also looks for the
  12. "right" thing in the man header when trying to pick out section number
  13. and man page name.  It is uuencode'ed because it contains control
  14. characters, and they should be preserved.  It seems to get everything
  15. right except some of the GNU man pages, which don't appear to be in
  16. the standard format, anyway.
  17.  
  18. Just save off your old /usr/share/man/makewhatis.sed, and put this
  19. one in its place.  Others have provided instructions on generating the
  20. whatis.db, but the following script will suffice until you can find
  21. those instructions. :-)
  22.  
  23. #!/bin/sh
  24. cd /usr/share/man
  25. for x in `find cat* -type f -print`
  26. do
  27.         echo $x > /dev/tty
  28.         sed -f makewhatis.sed < $x
  29. done | sort -u > whatis.db
  30. exit 0
  31.  
  32. This file is a derivative work of the original, and is provided under
  33. the same conditions.
  34.  
  35.                     Andy Valencia
  36.                     ajv@csd.mot.com (for now)
  37.                     jtk@netcom.com (if it bounces)
  38.  
  39. begin 644 makewhatis.sed
  40. M(R$O8FEN+W-H("T*(PHC($-O<'ER:6=H="`H8RD@,3DX."!4:&4@4F5G96YT
  41. M<R!O9B!T:&4@56YI=F5R<VET>2!O9B!#86QI9F]R;FEA+@HC($%L;"!R:6=H
  42. M=',@<F5S97)V960N"B,*(R!2961I<W1R:6)U=&EO;B!A;F0@=7-E(&EN('-O
  43. M=7)C92!A;F0@8FEN87)Y(&9O<FUS+"!W:71H(&]R('=I=&AO=70*(R!M;V1I
  44. M9FEC871I;VXL(&%R92!P97)M:71T960@<')O=FED960@=&AA="!T:&4@9F]L
  45. M;&]W:6YG(&-O;F1I=&EO;G,*(R!A<F4@;65T.@HC(#$N(%)E9&ES=')I8G5T
  46. M:6]N<R!O9B!S;W5R8V4@8V]D92!M=7-T(')E=&%I;B!T:&4@86)O=F4@8V]P
  47. M>7)I9VAT"B,@("`@;F]T:6-E+"!T:&ES(&QI<W0@;V8@8V]N9&ET:6]N<R!A
  48. M;F0@=&AE(&9O;&QO=VEN9R!D:7-C;&%I;65R+@HC(#(N(%)E9&ES=')I8G5T
  49. M:6]N<R!I;B!B:6YA<GD@9F]R;2!M=7-T(')E<')O9'5C92!T:&4@86)O=F4@
  50. M8V]P>7)I9VAT"B,@("`@;F]T:6-E+"!T:&ES(&QI<W0@;V8@8V]N9&ET:6]N
  51. M<R!A;F0@=&AE(&9O;&QO=VEN9R!D:7-C;&%I;65R(&EN('1H90HC("`@(&1O
  52. M8W5M96YT871I;VX@86YD+V]R(&]T:&5R(&UA=&5R:6%L<R!P<F]V:61E9"!W
  53. M:71H('1H92!D:7-T<FEB=71I;VXN"B,@,RX@06QL(&%D=F5R=&ES:6YG(&UA
  54. M=&5R:6%L<R!M96YT:6]N:6YG(&9E871U<F5S(&]R('5S92!O9B!T:&ES('-O
  55. M9G1W87)E"B,@("`@;75S="!D:7-P;&%Y('1H92!F;VQL;W=I;F<@86-K;F]W
  56. M;&5D9V5M96YT.@HC"51H:7,@<')O9'5C="!I;F-L=61E<R!S;V9T=V%R92!D
  57. M979E;&]P960@8GD@=&AE(%5N:79E<G-I='D@;V8*(PE#86QI9F]R;FEA+"!"
  58. M97)K96QE>2!A;F0@:71S(&-O;G1R:6)U=&]R<RX*(R`T+B!.96ET:&5R('1H
  59. M92!N86UE(&]F('1H92!5;FEV97)S:71Y(&YO<B!T:&4@;F%M97,@;V8@:71S
  60. M(&-O;G1R:6)U=&]R<PHC("`@(&UA>2!B92!U<V5D('1O(&5N9&]R<V4@;W(@
  61. M<')O;6]T92!P<F]D=6-T<R!D97)I=F5D(&9R;VT@=&AI<R!S;V9T=V%R90HC
  62. M("`@('=I=&AO=70@<W!E8VEF:6,@<')I;W(@=W)I='1E;B!P97)M:7-S:6]N
  63. M+@HC"B,@5$A)4R!33T945T%212!)4R!04D]6241%1"!"62!42$4@4D5'14Y4
  64. M4R!!3D0@0T].5%))0E543U)3(&!@05,@25,G)R!!3D0*(R!!3ED@15A04D53
  65. M4R!/4B!)35!,245$(%=!4E)!3E1)15,L($E.0TQ51$E.1RP@0E54($Y/5"!,
  66. M24U)5$5$(%1/+"!42$4*(R!)35!,245$(%=!4E)!3E1)15,@3T8@34520TA!
  67. M3E1!0DE,2519($%.1"!&251.15-3($9/4B!!(%!!4E1)0U5,05(@4%524$]3
  68. M10HC($%212!$25-#3$%)345$+B`@24X@3D\@159%3E0@4TA!3$P@5$A%(%)%
  69. M1T5.5%,@3U(@0T].5%))0E543U)3($)%($Q)04),10HC($9/4B!!3ED@1$E2
  70. M14-4+"!)3D1)4D5#5"P@24Y#241%3E1!3"P@4U!%0TE!3"P@15A%35!,05)9
  71. M+"!/4B!#3TY315%514Y424%,"B,@1$%-04=%4R`H24Y#3%5$24Y'+"!"550@
  72. M3D]4($Q)34E4140@5$\L(%!23T-54D5-14Y4($]&(%-50E-425155$4@1T]/
  73. M1%,*(R!/4B!315)624-%4SL@3$]34R!/1B!54T4L($1!5$$L($]2(%!23T9)
  74. M5%,[($]2($)54TE.15-3($E.5$524E505$E/3BD*(R!(3U=%5D52($-!55-%
  75. M1"!!3D0@3TX@04Y9(%1(14]262!/1B!,24%"24Q)5%DL(%=(151(15(@24X@
  76. M0T].5%)!0U0L(%-44DE#5`HC($Q)04))3$E462P@3U(@5$]25"`H24Y#3%5$
  77. M24Y'($Y%1TQ)1T5.0T4@3U(@3U1(15)725-%*2!!4DE324Y'($E.($%.62!7
  78. M05D*(R!/550@3T8@5$A%(%5312!/1B!42$E3(%-/1E1705)%+"!%5D5.($E&
  79. M($%$5DE3140@3T8@5$A%(%!/4U-)0DE,2519($]&"B,@4U5#2"!$04U!1T4N
  80. M"B,*(PE`*",I;6%K97=H871I<RYS960)-2XU("A"97)K96QE>2D@-"\Q-R\Y
  81. M,0HC"B]>6T$M6C`M.5TJ*%LP+3E=*5L@"5TN*EL@"5U;02U:,"TY72HH6S`M
  82. M.5TI)"\@>PH)<SLN*BA<*%MA+7I!+5HP+3E=*EPI+BH[7#$["@EH"@ED"GT*
  83. M"B]>3@A.00A!30A-10A%+R%D"@HZ;F%M90H)<SLN*CL["@E."@ES.UQN.SL*
  84. M"7,[""X[.V<*"2]>6UX)(%TO8B!P<FEN=`H)2`H)8B!N86UE"@HZ<')I;G0*
  85. M"7@*"7,[7&X[.V<*"2\M+R%D"@ES.UPH6V$M>EU;02UZ75PI+5L)(%U;"2!=
  86. M*CM<,3L*"7,[7"A;82UZ02U:,"TY+%U<*5L)(%U;"2!=*CM<,2`[9PH)<SM;
  87. M7F$M>D$M6C`M.5TJ7"A;82UZ02U:,"TY72I<*5M>82UZ02U:,"TY72I<*"XJ
  88. C7"D@+2!<*"XJ7"D[7#(@*%PQ*2`M(%PS.PH)<`H)9`H)<0I:
  89. `
  90. end
  91.