diff options
author | David Leonard <d@cvs.openbsd.org> | 2001-01-17 04:23:46 +0000 |
---|---|---|
committer | David Leonard <d@cvs.openbsd.org> | 2001-01-17 04:23:46 +0000 |
commit | 5e7b102be725a3da894e929575e0b29d80c846e2 (patch) | |
tree | d1d22d2e03e8aef1836c871d239d85c9aa1bb182 /sbin | |
parent | 28694ba838cce9fb8d623440db1792a5fd51ac04 (diff) |
don't nroff twice, and escape protect possible bad chars
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/disklabel/Makefile | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/disklabel/Makefile b/sbin/disklabel/Makefile index 3f1a95054c1..b97df1ec00b 100644 --- a/sbin/disklabel/Makefile +++ b/sbin/disklabel/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.21 1999/07/14 23:16:26 deraadt Exp $ +# $OpenBSD: Makefile,v 1.22 2001/01/17 04:23:45 d Exp $ PROG= disklabel SRCS= disklabel.c dkcksum.c editor.c manual.c @@ -7,9 +7,9 @@ LDADD= -lutil MAN= disklabel.8 disklabel.5 CLEANFILES+=manual.c -manual.c: disklabel.8 +manual.c: disklabel.cat8 (echo 'char manpage[] = "\\'; \ - nroff -mandoc ${.CURDIR}/disklabel.8 | sed -e 's/$$/\\n\\/' ; \ + sed -e 's/[\\"]/\\&/g' -e 's/$$/\\n\\/' disklabel.cat8; \ echo '";' ) > manual.c .if (${MACHINE} == "amiga") |