Check for 'rst2man' misses installed 'rst2man.py' (#4728)

By default, 'docutils' installs 'rst2man' as 'rst2man.py'. Amend the
check for 'rst2man' to look for 'rst2man.py' as well if 'rst2man' is
not found.
This commit is contained in:
aneejit1 2022-03-19 10:41:32 +00:00
parent eeaa73c12a
commit 91511a80ac

View File

@ -57,7 +57,7 @@ if get_option('gtk_doc')
)
endif
rst2man = find_program('rst2man', required: false)
rst2man = find_program('rst2man', 'rst2man.py', required: false)
if get_option('man-pages') and not rst2man.found()
error('No rst2man found, but man pages were explicitly enabled')
endif