Skip to content

Commit ee61853

Browse files
committed
gen-manpages: Prompt error if no binaries are found
1 parent 299e222 commit ee61853

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

contrib/devtools/gen-manpages.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,10 @@
6868

6969
versions.append((abspath, verstr, copyright))
7070

71+
if not versions:
72+
print(f'No binaries found in {builddir}. Please ensure the binaries are present in {builddir}, or set another build path using the BUILDDIR env variable.')
73+
sys.exit(1)
74+
7175
if any(verstr.endswith('-dirty') for (_, verstr, _) in versions):
7276
print("WARNING: Binaries were built from a dirty tree.")
7377
print('man pages generated from dirty binaries should NOT be committed.')

0 commit comments

Comments
 (0)