source@mandoc.bsd.lv
 help / color / Atom feed
* mandoc: Simplify maintainer targets in OpenBSD: EQN and TBL variables no 
@ 2020-01-08 10:38 schwarze
  0 siblings, 0 replies; only message in thread
From: schwarze @ 2020-01-08 10:38 UTC (permalink / raw)
  To: source

Log Message:
-----------
Simplify maintainer targets in OpenBSD: EQN and TBL variables
no longer exist and NROFF/NOPTS were replaced with GROFF/GOPTS.  
This doesn't change how things work in the protable version 
of the test suite.

Modified Files:
--------------
    mandoc/regress:
        regress.pl
    mandoc/regress/eqn:
        Makefile.inc
    mandoc/regress/man/TS:
        Makefile
    mandoc/regress/mdoc/Dd:
        Makefile
    mandoc/regress/tbl:
        Makefile.inc

Revision Data
-------------
Index: Makefile.inc
===================================================================
RCS file: /home/cvs/mandoc/mandoc/regress/eqn/Makefile.inc,v
retrieving revision 1.2
retrieving revision 1.3
diff -Lregress/eqn/Makefile.inc -Lregress/eqn/Makefile.inc -u -p -r1.2 -r1.3
--- regress/eqn/Makefile.inc
+++ regress/eqn/Makefile.inc
@@ -1,6 +1,4 @@
-# $OpenBSD: Makefile.inc,v 1.2 2015/02/03 19:37:25 schwarze Exp $
-
-EQN = /usr/local/bin/eqn
+# $OpenBSD: Makefile.inc,v 1.4 2020/01/08 10:17:15 schwarze Exp $
 
 SKIP_GROFF ?= ${REGRESS_TARGETS}
 SKIP_TMAN ?= ALL
Index: regress.pl
===================================================================
RCS file: /home/cvs/mandoc/mandoc/regress/regress.pl,v
retrieving revision 1.12
retrieving revision 1.13
diff -Lregress/regress.pl -Lregress/regress.pl -u -p -r1.12 -r1.13
--- regress/regress.pl
+++ regress/regress.pl
@@ -165,10 +165,9 @@ foreach my $module (qw(roff char mdoc ma
 		my %subvars = (MOPTS => '');
 		parse_makefile "$module/$subdir/Makefile", \%subvars;
 		parse_makefile "$module/Makefile.inc", \%subvars;
+		delete $subvars{GOPTS};
 		delete $subvars{SKIP_GROFF};
 		delete $subvars{SKIP_GROFF_ASCII};
-		delete $subvars{TBL};
-		delete $subvars{EQN};
 		my @mandoc = ('../mandoc', split ' ', $subvars{MOPTS});
 		delete $subvars{MOPTS};
 		my @regress_testnames;
Index: Makefile
===================================================================
RCS file: /home/cvs/mandoc/mandoc/regress/mdoc/Dd/Makefile,v
retrieving revision 1.3
retrieving revision 1.4
diff -Lregress/mdoc/Dd/Makefile -Lregress/mdoc/Dd/Makefile -u -p -r1.3 -r1.4
--- regress/mdoc/Dd/Makefile
+++ regress/mdoc/Dd/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.2 2014/11/21 01:52:45 schwarze Exp $
+# $OpenBSD: Makefile,v 1.5 2020/01/08 10:17:15 schwarze Exp $
 
 REGRESS_TARGETS	 = badarg dupe late long manarg noarg order
 LINT_TARGETS	 = badarg dupe late long manarg noarg order
@@ -18,6 +18,6 @@ SKIP_GROFF	 = badarg long manarg noarg
 
 # Autodetection fails for late .Dd, so specify -mdoc explicitly.
 
-MOPTS		+= -mdoc
+MOPTS		 = -mdoc
 
 .include <bsd.regress.mk>
Index: Makefile
===================================================================
RCS file: /home/cvs/mandoc/mandoc/regress/man/TS/Makefile,v
retrieving revision 1.1
retrieving revision 1.2
diff -Lregress/man/TS/Makefile -Lregress/man/TS/Makefile -u -p -r1.1 -r1.2
--- regress/man/TS/Makefile
+++ regress/man/TS/Makefile
@@ -1,22 +1,13 @@
-# $OpenBSD: Makefile,v 1.3 2015/01/30 21:28:21 schwarze Exp $
+# $OpenBSD: Makefile,v 1.4 2020/01/08 10:17:15 schwarze Exp $
 
 REGRESS_TARGETS	= break vspace
 LINT_TARGETS	= break
+GOPTS		= -t
 
 # groff-1.22.3 defect:
 # - Starting a table in next-line scope confuses font handling,
 #   and in the case of .TP indentation as well.
 
 SKIP_GROFF	= break
-
-
-# OpenBSD only: maintainer targets
-
-TBL=/usr/local/bin/tbl
-
-.for t in ${REGRESS_TARGETS}
-${t}.out_ascii: ${t}.in
-	${TBL} ${.ALLSRC} | ${NROFF} ${NOPTS} -Tascii > ${.TARGET}
-.endfor
 
 .include <bsd.regress.mk>
Index: Makefile.inc
===================================================================
RCS file: /home/cvs/mandoc/mandoc/regress/tbl/Makefile.inc,v
retrieving revision 1.2
retrieving revision 1.3
diff -Lregress/tbl/Makefile.inc -Lregress/tbl/Makefile.inc -u -p -r1.2 -r1.3
--- regress/tbl/Makefile.inc
+++ regress/tbl/Makefile.inc
@@ -1,16 +1,7 @@
-# $OpenBSD: Makefile.inc,v 1.2 2015/02/03 19:37:25 schwarze Exp $
-
-TBL = /usr/local/bin/tbl
+# $OpenBSD: Makefile.inc,v 1.4 2020/01/08 10:17:15 schwarze Exp $
 
 SKIP_TMAN ?= ALL
 SKIP_MARKDOWN ?= ALL
-
-
-# OpenBSD only: maintainer targets
-
-.for t in ${REGRESS_TARGETS}
-${t}.out_ascii: ${t}.in
-	${TBL} ${.ALLSRC} | ${NROFF} ${NOPTS} -Tascii > ${.TARGET}
-.endfor
+GOPTS = -t
 
 .include "../Makefile.inc"
--
 To unsubscribe send an email to source+unsubscribe@mandoc.bsd.lv

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, back to index

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-08 10:38 mandoc: Simplify maintainer targets in OpenBSD: EQN and TBL variables no schwarze

source@mandoc.bsd.lv

Archives are clonable: git clone --mirror http://inbox.vuxu.org/mandoc-source

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://inbox.vuxu.org/vuxu.archive.mandoc.source


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git