commit 2ff35f6e4d93ce795a3388e556f15b8dcfcbb48b (patch)
parent cf670de12685a94e7a53f0a126ae77cbf548cf91
Author: Alex Karle <alex@alexkarle.com>
Date: Sun, 4 Apr 2021 22:33:32 -0400
make: Add lint step to build stage
To prevent noise, I ratcheted it down to -Wwarning (some of the
style points I don't need for my purpose, such as replacing OpenBSD
with .Os -- I want to talk about OpenBSD regardless where the page
was rendered!).
This involves fixing the one warning on template.7 (incorrect date)
Diffstat:
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
@@ -24,6 +24,7 @@ atom.xml: blog.7 genatom.sh
.SUFFIXES: .7 .html
.7.html:
@echo "mandoc $<"
+ $(HIDE)mandoc -Tlint -Wwarning $<
$(HIDE)mandoc -Thtml -O 'man=%N.html;https://man.openbsd.org/%N.%S,style=style.css' $< \
| sed 's#</head>#<meta name="viewport" content="width=device-width,initial-scale=1">&# ' \
| sed 's#^<html#& lang="en"#' \
diff --git a/template.7 b/template.7
@@ -1,4 +1,4 @@
-.Dd Month Day, Year
+.Dd January 1, 2021
.Dt TITLE 7
.Os
.Sh NAME