70 Commits

Author SHA1 Message Date
rgrimes
2ad6f3dee6 Remove trailing whitespace. 1995-05-30 05:05:38 +00:00
ache
9c78f8a3ae Don't chdir to subdirs before formatting, non-native manpages
assume it for .so directive
Submitted by: Wolfram Schneider <wosch@cs.tu-berlin.de>
1995-05-20 19:02:53 +00:00
rgrimes
55cfac0c2c Submitted by: Charles Henrich <henrich@fubar.cl.msu.edu>
Quite up man when directories in MANPATH do not exist.  If you want
it to tell you about problems use man -d.
1995-05-12 04:56:28 +00:00
joerg
9369e97838 From Wolfram: Fix: typos, old links
Submitted by:	wosch@cs.tu-berlin.de (Wolfram Schneider)
1995-05-06 19:04:07 +00:00
jkh
212277584e Close this PR:
>Number:         364
>Category:       bin
>Synopsis:       Interrupting man results in half-baked man page
>Description:

Interrupting man while it is waiting for the page to be formatted
results in a zero length file or a half-baked file.

>How-To-Repeat:

Inetrrupt man while it is formatting a page.

>Fix:

Pay more attention to the return value from the system command.
Submitted by:	John Capo <jc@irbs.com>
1995-04-26 16:19:23 +00:00
joerg
c8a22d7502 Fix broken file name globbing. Man is now also able to find pages
like "3DBorder" and "[".  (NB, the "3DBorder" problem has actually
been intention, it allowed for weird section names like "3xyzzy".  We
don't have them, either.)

(Partially) Submitted by:	taob@gate.sinica.edu.tw (Brian Tao)
1995-04-11 22:01:53 +00:00
joerg
41b5517e4c Fix the
Ignore wrong indent value: ``''

bug, as reported by Chris Kukulies.
1995-04-01 11:43:09 +00:00
joerg
256869e2cc Wolfram's latest update.
Submitted by:	wosch@cs.tu-berlin.de (Wolfram Schneider)
1995-03-31 04:00:53 +00:00
jmz
7ea938b9c9 'directories...' is an argument, not an option 1995-03-27 01:52:59 +00:00
ache
fa0492e32b Don't use user PATH into environment for sec reasons 1995-03-18 02:19:25 +00:00
ache
d9d9267f2d 1) Call nroff instead of groff, nroff have some internal groff options
2) Use absolute pathname for nroff
3) Use -Tascii instead -Tlatin1, too many strange chars (like
soft hyphens f.e.) appearse in other case.
1995-03-18 02:11:56 +00:00
joerg
92db8b5a0c Wolfram's replacement for the oldish ugly catman(1) program. The new
one is much more intelligent, not only that it would accept multiple
man page locations, it also behaves like ``make'' in that it will only
deal with cat pages that are out of date (by default).

Wolfram also wrote a man page for it.

Submitted by:	wosch@cs.tu-berlin.de (Wolfram Schneider)
1995-03-15 22:47:38 +00:00
paul
e2e946faed Change the return status of do_system_command to be -1
if a signal is received.

This fixes a bug where killing the process would cause a
"No manual entry for XXX" to be printed even if the manpage
was found.
1995-03-09 19:56:23 +00:00
joerg
df59b41b50 Patch bei Wolfram to avoid processing duplicate directories.
Submitted by:	wosch@cs.tu-berlin.de (Wolfram Schneider)
1995-02-26 19:35:06 +00:00
bde
9e59b6d7ce Install manpath.config.sample with the correct mode. It should be installed
elsewhere.
1995-02-26 03:03:15 +00:00
joerg
2214a4e232 Wolfram now also submitted a man page for this.
Submitted by:	Wolfram Schneider <wosch@cs.tu-berlin.de>
1995-02-15 22:52:52 +00:00
ache
70fe30ff17 Use nroff instead of groff in %nroff% macro, becasue
nroff shell script pass additional internal parameters to groff
1995-01-17 21:12:05 +00:00
ache
a0e48c2a72 Back out my ascii->latin1 change, too many special chars
appearse after it (f.e. hyphentate and such) which looks
very different in different code pages
1995-01-16 17:18:03 +00:00
wollman
27668cffd2 Turn off incredibly obnoxious forced -c' option to more'. 1995-01-14 20:09:47 +00:00
ache
465a9fc481 Use -Tlatin1 instead -Tascii to pass character from
S0ren name without warnings.
1995-01-13 00:42:04 +00:00
joerg
75bdcd257c argl, better unzip the perl script before installing. :-/ 1995-01-11 09:21:29 +00:00
joerg
f1933d1eef From our favorite Perl script writer: a new makewhatis, about
15 times faster than the existing sh script.

Submitted by:   Wolfram Schneider <wosch@cs.tu-berlin.de>
1995-01-10 18:12:50 +00:00
jkh
1c4fc5f824 Remove /usr/gnu from mandatory manpath. 1994-11-22 09:57:42 +00:00
bde
a0b97b8906 Clean up some foreign makefiles a bit, attempting to handle .sh files
more like binaries.  This is hard to do using a general rules because
the natural `.sh:' rule has a null suffix and null suffixes are broken.
(With 1.1.5's make they sometimes work and sometimes cause core dumps.
2.0's make has a botched fixed and they never work.)
1994-11-14 05:57:36 +00:00
bde
7a562692a6 Use standard clean, cleandir and obj targets.
Don't use $@.

Uniformize the man Makefiles for shell scripts.  It should't take such
large Makefiles to install one script and one man page each.
1994-08-28 18:33:48 +00:00
bde
72011dcfa3 Remove stale clone of obj target. 1994-08-28 18:25:55 +00:00
bde
a9f5e2f0f4 Fixed Makefile for make depend some more. The .depend target was not
being created and config.h depended on Makefile.inc being in the wrong
directory so real dependencies were not being checked.  The "depend"
target was not created either so "make depend" always found work to do.
1994-08-25 08:36:26 +00:00
jkh
9c110258c6 From: Tom Pavel <PAVEL@SLAC.Stanford.EDU>
Subject: man returns 1

In 1.1.5.1, man returns a status of 1 if the lookup succeeds and 0 if
it fails.  Here is a patch for what I believe is a simple oversight:

Submitted by:	jkh
1994-08-24 07:26:23 +00:00
csgr
92a5206e4e Make these Makefiles work properly when NOMAN is defined.
(I wish they just used bsd.prog.mk)
1994-06-05 21:57:16 +00:00
csgr
2bf3d34a8c Manual pages are now installed via the bsd.man.mk macro, since the
existing arrangement in this makefile doesn't allow for compressed
manual pages.
1994-06-05 20:39:58 +00:00
csgr
da0b50cf15 Turn globbing on when a section number is specified, this makes things work
properly when /usr/share/man/man?/ contain gzipped unformatted pages.
1994-05-28 20:19:25 +00:00
ache
007929fd3a Fix catman to produce zipped cats, like man does.
In other (old) case we have both kind of cats at once.
1994-05-23 22:13:36 +00:00
jkh
acccd62b13 Stop toasting folks' /etc/manpath.config files. 1994-05-17 12:50:36 +00:00
rich
f2d5e9a493 Add X11R6 to manpath in preprataion for XFree86 3.0. 1994-05-17 11:26:12 +00:00
ats
f4fef7d4f5 Changed the Makefiles for catman and makewhatis that the output from the
sed goes into an obj dir, if it exists, instead of the src dir.
1994-04-13 19:54:43 +00:00
jkh
d377492fa0 Something bogus happened here; not sure what or how.
Fixed.
1994-03-23 18:50:57 +00:00
jkh
5e4d4e2302 Make man the default owner, don't bother with sgid. 1994-03-19 22:25:17 +00:00
jkh
7055d6c2f1 Correct pre-installation target. 1994-03-19 22:24:48 +00:00
jkh
018adc850a Change group id to man 1994-03-18 11:55:53 +00:00
jkh
31c91e4def Make man sgid bin, not sgid AND suid. There is no reason to make man suid
bin since all you need to do is make the cat dirs group owned and writable
by bin - much less dangerous.
1994-03-16 13:05:31 +00:00
jkh
6703ae951f New manpage compression support. Only one macro controls compression
now, DO_COMPRESS.  This controls whether or not catpages are compressed or
not (on by default, since little else uses the catpages and those few things
that do can always configure in a `zmore' in place of more or something, and
saving space is more important, IMHO).

Uncompression support is now on by default since that's the only way to support
mixed-mode environments.  If you don't like it, just don't compress your man
pages and it won't be used! :-).  Supports gzip.  You can also compress
the man pages themselves (or gzip them) now and it will work.
1994-03-05 13:48:38 +00:00
jkh
0ba82aebc9 Try copy if rename of temporary catpage fails. 1993-10-10 01:46:53 +00:00
jkh
e0d5784d0e Handle both signals and errors in child processes, rather than just signals
as before.
1993-10-09 00:48:26 +00:00
jkh
e0ff44a8f9 Allow ^C to interrupt with some semblance of politeness to cgd. 1993-10-08 02:39:36 +00:00
jkh
40e400f2e0 More paranoid dealings with system() 1993-10-08 02:38:15 +00:00
rgrimes
6b0f4b30a8 Added bsd.prog.mk so that make maninstall would work 1993-09-08 14:23:28 +00:00
nate
3e13f7d887 Cleaned up the Makefile to look nicer and not require a lot of hacks 1993-08-04 21:00:46 +00:00
alm
17f98e8cfc changed BINMODE= 6555 and CATMODE= 0664 1993-07-27 03:28:32 +00:00
alm
1b52595560 Added setreuid() calls so that shell escapes work.
The effective ID's need to be set to the real ID's before invoking
a shell for security reasons.
1993-07-27 02:54:46 +00:00
alm
296415722f updated man to use more as the default pager 1993-07-26 19:41:13 +00:00