Add special case: /dev/pms should refer to opms(4) (if it existed), not
to pms(4). Noted by Thomas Klausner.
This commit is contained in:
parent
f09098b78b
commit
0278f5dfcc
@ -1,4 +1,4 @@
|
|||||||
# $NetBSD: MAKEDEV2manpage.awk,v 1.2 2002/04/18 13:33:01 dillo Exp $
|
# $NetBSD: MAKEDEV2manpage.awk,v 1.3 2002/04/19 01:34:41 dillo Exp $
|
||||||
#
|
#
|
||||||
# Copyright (c) 2002
|
# Copyright (c) 2002
|
||||||
# Dieter Baron <dillo@netbsd.org>. All rights reserved.
|
# Dieter Baron <dillo@netbsd.org>. All rights reserved.
|
||||||
@ -140,10 +140,14 @@ function read1line() {
|
|||||||
sub(/[ \t]*$/, "", line);
|
sub(/[ \t]*$/, "", line);
|
||||||
|
|
||||||
# add manpage, if available
|
# add manpage, if available
|
||||||
page=target;
|
|
||||||
sub(/[^a-zA-Z]+/, "", page);
|
|
||||||
if (target == "fd#")
|
if (target == "fd#")
|
||||||
page = "fdc";
|
page = "fdc";
|
||||||
|
else if (target == "pms#")
|
||||||
|
page = "omps";
|
||||||
|
else {
|
||||||
|
page=target;
|
||||||
|
sub(/[^a-zA-Z]+/, "", page);
|
||||||
|
}
|
||||||
|
|
||||||
if (system("test -f ../man4/" page ".4 -o -f ../man4/man4." ARCH "/" page ".4") == 0) {
|
if (system("test -f ../man4/" page ".4 -o -f ../man4/man4." ARCH "/" page ".4") == 0) {
|
||||||
sub(/[ \t]*$/, "", line);
|
sub(/[ \t]*$/, "", line);
|
||||||
|
Loading…
Reference in New Issue
Block a user