mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-04-29 14:59:39 -04:00
gen-manpages: Prompt error if no binaries are found
This commit is contained in:
parent
299e2220e9
commit
ee6185372f
1 changed files with 4 additions and 0 deletions
|
@ -68,6 +68,10 @@ for relpath in BINARIES:
|
||||||
|
|
||||||
versions.append((abspath, verstr, copyright))
|
versions.append((abspath, verstr, copyright))
|
||||||
|
|
||||||
|
if not versions:
|
||||||
|
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.')
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
if any(verstr.endswith('-dirty') for (_, verstr, _) in versions):
|
if any(verstr.endswith('-dirty') for (_, verstr, _) in versions):
|
||||||
print("WARNING: Binaries were built from a dirty tree.")
|
print("WARNING: Binaries were built from a dirty tree.")
|
||||||
print('man pages generated from dirty binaries should NOT be committed.')
|
print('man pages generated from dirty binaries should NOT be committed.')
|
||||||
|
|
Loading…
Add table
Reference in a new issue