Skip to content
This repository was archived by the owner on Jan 22, 2026. It is now read-only.

Commit aefe8ef

Browse files
committed
Check for man page errors after generating
1 parent 9dd3dec commit aefe8ef

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

setup.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,6 @@ def _update_manpages(self):
268268
inp = infd.read()
269269
infd.close()
270270

271-
272271
outp = inp.replace("::VARIANT VALUES::", output)
273272
if outp != origout or not(os.path.exists(outfile)):
274273
outfd = open(outfile, "w")
@@ -279,6 +278,11 @@ def _update_manpages(self):
279278
if os.system("make -C man/en"):
280279
raise RuntimeError("Couldn't generate man pages.")
281280

281+
if os.system("grep -IRq 'Hey!' man/en") == 0:
282+
raise RuntimeError("man pages have errors in them! "
283+
"(grep for 'Hey!')")
284+
285+
282286
class mybuild(build):
283287
""" custom build command to compile i18n files"""
284288

0 commit comments

Comments
 (0)