diff options
| author | Joerg Wunsch <joerg@FreeBSD.org> | 1995-05-06 19:04:07 +0000 |
|---|---|---|
| committer | Joerg Wunsch <joerg@FreeBSD.org> | 1995-05-06 19:04:07 +0000 |
| commit | d2b27ba8b656c37cfba4f20aa9f3d06d63f3f94d (patch) | |
| tree | 45cde3bf30db5f8034f647d0924ed7d4657a3712 /gnu | |
| parent | 47f4474b4ee0d9a188debb99c477eefd4042ec07 (diff) | |
Notes
Diffstat (limited to 'gnu')
| -rw-r--r-- | gnu/usr.bin/man/catman/catman.1 | 4 | ||||
| -rw-r--r-- | gnu/usr.bin/man/catman/catman.perl | 10 |
2 files changed, 9 insertions, 5 deletions
diff --git a/gnu/usr.bin/man/catman/catman.1 b/gnu/usr.bin/man/catman/catman.1 index b8715d7e57b3..09749777b026 100644 --- a/gnu/usr.bin/man/catman/catman.1 +++ b/gnu/usr.bin/man/catman/catman.1 @@ -30,7 +30,7 @@ .\" .\" E-mail: Wolfram Schneider <wosch@cs.tu-berlin.de> .\" -.\" $Id: catman.1,v 1.9 1995/03/27 19:51:14 w Exp $ +.\" $Id: catman.1,v 1.4 1995/03/31 04:00:17 joerg Exp $ .\" .Dd Mar 12, 1995 @@ -100,7 +100,7 @@ if neccessary. Format all your man pages if neccessary. .Pp -.Dl $ catman -o /usr/local/man/man1 /usr/local/man/manl +.Dl $ catman -f /usr/local/man/man1 /usr/local/man/manl .Pp Force reformatting of all man pages in .Pa /usr/local/man/man1 diff --git a/gnu/usr.bin/man/catman/catman.perl b/gnu/usr.bin/man/catman/catman.perl index ab87c4b48747..91abf5f957e4 100644 --- a/gnu/usr.bin/man/catman/catman.perl +++ b/gnu/usr.bin/man/catman/catman.perl @@ -35,7 +35,7 @@ # Bugs: sure # Email: Wolfram Schneider <wosch@cs.tu-berlin.de> # -# $Id: catman.pl,v 1.10 1995/03/18 19:57:22 w Exp $ +# $Id: catman.perl,v 1.4 1995/03/31 04:00:20 joerg Exp $ # sub usage { @@ -327,10 +327,14 @@ sub nroff { if ($link{"$dev.$ino"}) { warn "Link: $link{\"$dev.$ino\"} -> $cat\n" if $verbose || $print; - if (!$print && !link($link{"$dev.$ino"}, $cat)) { + return if $print; # done + unlink($cat); # remove possible old link + + unless (link($link{"$dev.$ino"}, $cat)) { warn "Link $cat: $!\n"; $exit = 1; } + return; } else { $cat = "$cat$ext" if $cat !~ /$ext$/; warn "Format: $man -> $cat\n" if $verbose || $print; @@ -348,7 +352,7 @@ sub nroff { system("$nroff | gzip > $cat.tmp"); if ($?) { # assume a fatal signal to nroff - &Exit("INT to system() funktion") if ($? == 2); + &Exit("INT to system() function") if ($? == 2); } else { rename("$cat.tmp", $cat); } |
