commit 7dc9f5290ba34113a2af64ba44f02f50127cf9a4
parent 508c45e648bf36f2a5b53ea847bad60afe2c07b5
Author: Vincent Forest <vincent.forest@meso-star.com>
Date: Sat, 14 Oct 2023 15:26:24 +0200
Fix Makefile lint target
The "smsh" manual page referenced is not installed in mandoc's default
search path. Mandoc therefore issues a warning and returns 1 when
checking the conformity of the file. This generated an error at the
Makefile invocation when invoking the lint target.
This commit corrects this problem by accepting all mandoc return codes
less than or equal to 1, which corresponds to "at least one violation of
the base system convention or style suggestion has occurred, but no
warning or error" (extract from the mandoc manual "EXIT STATUS").
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
@@ -109,7 +109,7 @@ distclean: clean
lint:
shellcheck -o all make.sh
- mandoc -Tlint -Wall sck.5
+ mandoc -Tlint -Wall sck.5 || [ $$? -le 1 ]
################################################################################
# Tests