home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.bsd
- 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
- From: gtoal@rachel.ibmpcug.co.uk (Graham Toal)
- Subject: [386BSD] Source for .Z-friendly man posted to alt.sources
- Organization: The IBM PC User Group, Harrow, England
- Date: Thu, 19 Nov 1992 03:11:58 GMT
- Message-ID: <Bxy0vz.EL2@ibmpcug.co.uk>
- Sender: news@ibmpcug.co.uk (News System Administration)
- Nntp-Posting-Host: rachel.ibmpcug.co.uk
- Lines: 34
-
- This is a *very* quick hack to man to allow you to compress all the
- man pages with unix compress and still be able to read them.
-
- Just go to /usr/share/man and do compress */*.0 */*/*.0
-
- There will be a lot of linked man pages that compress refuses to touch.
- Either leave them as is (I did) or unlink them, compress one by hand,
- and relink all the .Z versions. (Pref '-s' so you can see in future
- which files were linked to what)
-
- I hope I haven't broken it. Seems to work on everything I've tried.
-
- I started from the net2 man only because that's the only one I could
- find unpacked anywhere - the bsd src distribution is too big for me
- to unpack on my machine (hey - if I had space, I wouldn't be compressing
- the man pages, right?) If the 386bsd man is changed in any way from
- the net2 man, you'll have to fold in the mods yourself.
-
- In the places in the code where I've been dirty, I've put comments
- telling people what to change if they want to spend the time to do
- the job properly.
-
- This was a two-hour hack for my own benefit; if anyone else finds it
- useful they're welcome to it. I won't be supporting it after this.
- Ideally the .Z compression should be done transparently by the filing
- system, which I think is how bsd4.4 will do it? - in which case this
- hack will be redundant.
-
- Graham Toal <gtoal@gtoal.com>
- PS Create a directory /usr/local/src/man/man for this, and
- ln -s /usr/local/src/man/man/man /usr/bin/man to install it.
- Build this with cc -o man man.c config.c
- [config.c is straight off the net2 tape - only man.c and pathnames.h were
- hacked]
-