Print this page
5051 import mdocml-1.12.3
Reviewed by: Yuri Pankov <yuri.pankov@nexenta.com>
Approved by: TBD
@@ -29,13 +29,20 @@
ROOTMANLINKS= $(MANLINKS:%=$(ROOTMAN)/man$(MANSECT)/%)
$(ROOTMAN)/man$(MANSECT)/% $(ROOTHASMAN)/man$(MANSECT)/%: %
$(INS.file)
+#
+# Note that new mandoc adds some checks for lots of extra whitespace.
+# We don't want to check our legacy pages for that. There are thousands
+# and thousands of them in our man pages. Please still check them
+# manually when editing (git pbchk will do so for you.)
+#
$(MANCHECKS):
- @$(ECHO) "checking $(@:%.check=%)"; \
- $(MANDOC) -Tlint $(@:%.check=%)
+ @$(EGREP) -q "^.TH" $(@:%.check=%) || \
+ ( $(ECHO) "checking $(@:%.check=%)"; \
+ $(MANDOC) -Tlint $(@:%.check=%) )
$(MANLINKS):
$(RM) $@; $(SYMLINK) $(LINKSRC) $@
$(ROOTMANLINKS): $(MANLINKS)