From 16a666d3767c7db5c2e352c02f09aedca723d2a1 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Mon, 17 Jun 2024 14:06:21 -0400 Subject: docs/bfs.1: Fix some CHECKSTYLE warnings And add a new `make check-man` target. --- Makefile | 5 +++++ docs/bfs.1 | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 2679c85..d21cbb3 100644 --- a/Makefile +++ b/Makefile @@ -215,6 +215,11 @@ check-install:: bin/bfs pkg -not -type d -print -exit 1 ${RM} -r pkg +# Check man page markup +check-man:: + ${MSG} "[LINT] docs/bfs.1" \ + groff -man -rCHECKSTYLE=3 -ww -b -z docs/bfs.1 + ## Cleanup (`make clean`) # Clean all build products diff --git a/docs/bfs.1 b/docs/bfs.1 index 625ee3b..cc9504e 100644 --- a/docs/bfs.1 +++ b/docs/bfs.1 @@ -1,4 +1,4 @@ -.TH BFS 1 +.TH BFS 1 2024-06-17 "bfs 3.3.1" .SH NAME bfs \- breadth-first search for your files .SH SYNOPSIS @@ -71,7 +71,7 @@ will also accept .I \-N or .IR +N . -.IR \-N +.I \-N means "less than .IR N ," and @@ -917,7 +917,7 @@ Finds broken symbolic links. .TP .B bfs \-name config \-exclude \-name .git Finds all files named -.BR config, +.BR config , skipping every .B .git directory. -- cgit v1.2.3