summaryrefslogtreecommitdiff
path: root/regress/usr.bin/mandoc/roff/esc/Makefile
blob: 41c7afe8bc4b17fd60bf917d605001d1cd09babd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# $OpenBSD: Makefile,v 1.1 2012/05/28 13:00:51 schwarze Exp $

REGRESS_TARGETS=z

# Postprocessing to remove "character backspace" sequences
# unless they are foolowed by the same character again.
# This removes underlining as well, so we mustn't use it.
# Cannot use /g because matches progress backwards.

z.out_ascii: z.in
	${NROFF} ${.ALLSRC} | \
		perl -pe 'while (s/(.)\010(?!\1)//) {}' \
		> ${.TARGET}

.include <bsd.regress.mk>