]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
*.mk: lint-mdoc-mandoc: Silence warnings about ISO 8601 format in the date
authorAlejandro Colomar <alx@kernel.org>
Fri, 28 Apr 2023 14:52:00 +0000 (16:52 +0200)
committerAlejandro Colomar <alx@kernel.org>
Fri, 28 Apr 2023 14:52:08 +0000 (16:52 +0200)
ISO 8601 is the standard way to express a date.  Don't warn about it.

Signed-off-by: Alejandro Colomar <alx@kernel.org>
share/mk/lint/man/mdoc.mk

index fd0925ab80d3d4c0a1ca9c41668da4a6bbc66414..56abb418f18a2f328134c743462c567b1b82b4a4 100644 (file)
@@ -25,6 +25,7 @@ lint_mdoc    := $(foreach x,$(linters_mdoc),lint-mdoc-$(x))
 $(_LINT_mdoc_mandoc): $(_MANDIR)/%.lint-mdoc.mandoc.touch: $(MANDIR)/% | $$(@D)/
        $(info LINT (mandoc)    $@)
        ! ($(MANDOC) -mdoc $(MANDOCFLAGS) $< 2>&1 \
+          | $(GREP) -v 'STYLE: legacy man(7) date format: Dd ' \
           | $(GREP) -v 'STYLE: lower case character in document title: Dt ' \
           | $(GREP) -v 'STYLE: operating system explicitly specified: Os ' \
           | $(GREP) -v 'WARNING: cross reference to self: Xr ' \