Print this page
5051 import mdocml-1.12.3
Reviewed by: Yuri Pankov <yuri.pankov@nexenta.com>
Approved by: TBD

*** 29,41 **** ROOTMANLINKS= $(MANLINKS:%=$(ROOTMAN)/man$(MANSECT)/%) $(ROOTMAN)/man$(MANSECT)/% $(ROOTHASMAN)/man$(MANSECT)/%: % $(INS.file) $(MANCHECKS): ! @$(ECHO) "checking $(@:%.check=%)"; \ ! $(MANDOC) -Tlint $(@:%.check=%) $(MANLINKS): $(RM) $@; $(SYMLINK) $(LINKSRC) $@ $(ROOTMANLINKS): $(MANLINKS) --- 29,48 ---- 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): ! @$(EGREP) -q "^.TH" $(@:%.check=%) || \ ! ( $(ECHO) "checking $(@:%.check=%)"; \ ! $(MANDOC) -Tlint $(@:%.check=%) ) $(MANLINKS): $(RM) $@; $(SYMLINK) $(LINKSRC) $@ $(ROOTMANLINKS): $(MANLINKS)