home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / unix / bsd / 9084 < prev    next >
Encoding:
Text File  |  1992-11-19  |  2.1 KB  |  46 lines

  1. Newsgroups: comp.unix.bsd
  2. Path: sparky!uunet!elroy.jpl.nasa.gov!swrinde!news.dell.com!natinst.com!cs.utexas.edu!hermes.chpc.utexas.edu!news.utdallas.edu!corpgate!bnrgate!bnr.co.uk!stl!robobar!ibmpcug!rachel.ibmpcug.co.uk!gtoal
  3. From: gtoal@rachel.ibmpcug.co.uk (Graham Toal)
  4. Subject: [386BSD] Source for .Z-friendly man posted to alt.sources
  5. Organization: The IBM PC User Group, Harrow, England
  6. Date: Thu, 19 Nov 1992 03:11:58 GMT
  7. Message-ID: <Bxy0vz.EL2@ibmpcug.co.uk>
  8. Sender: news@ibmpcug.co.uk (News System Administration)
  9. Nntp-Posting-Host: rachel.ibmpcug.co.uk
  10. Lines: 34
  11.  
  12. This is a *very* quick hack to man to allow you to compress all the
  13. man pages with unix compress and still be able to read them.
  14.  
  15. Just go to /usr/share/man and do   compress */*.0 */*/*.0
  16.  
  17. There will be a lot of linked man pages that compress refuses to touch.
  18. Either leave them as is (I did) or unlink them, compress one by hand,
  19. and relink all the .Z versions.  (Pref '-s' so you can see in future
  20. which files were linked to what)
  21.  
  22. I hope I haven't broken it.  Seems to work on everything I've tried.
  23.  
  24. I started from the net2 man only because that's the only one I could
  25. find unpacked anywhere - the bsd src distribution is too big for me
  26. to unpack on my machine (hey - if I had space, I wouldn't be compressing
  27. the man pages, right?)  If the 386bsd man is changed in any way from
  28. the net2 man, you'll have to fold in the mods yourself.
  29.  
  30. In the places in the code where I've been dirty, I've put comments
  31. telling people what to change if they want to spend the time to do
  32. the job properly.
  33.  
  34. This was a two-hour hack for my own benefit; if anyone else finds it
  35. useful they're welcome to it.  I won't be supporting it after this.
  36. Ideally the .Z compression should be done transparently by the filing
  37. system, which I think is how bsd4.4 will do it? - in which case this
  38. hack will be redundant.
  39.  
  40. Graham Toal <gtoal@gtoal.com>
  41. PS Create a directory /usr/local/src/man/man for this, and
  42. ln -s /usr/local/src/man/man/man /usr/bin/man to install it.
  43. Build this with cc -o man man.c config.c
  44. [config.c is straight off the net2 tape - only man.c and pathnames.h were
  45. hacked]
  46.