meson: look for rst2man.py as well as rst2man

If you install docutils with pip in the default way, you will get a
script called `rst2man.py` rather than `rst2man`, so look for both
names.
This commit is contained in:
Philip Langdale 2021-12-17 10:31:21 -08:00 committed by Philip Langdale
parent 3ec2012cec
commit e79cd6227b
1 changed files with 1 additions and 1 deletions

View File

@ -1631,7 +1631,7 @@ endif
# manpages # manpages
manpage = 'DOCS/man/mpv.rst' manpage = 'DOCS/man/mpv.rst'
rst2man = find_program('rst2man', required: get_option('manpage-build')) rst2man = find_program('rst2man', 'rst2man.py', required: get_option('manpage-build'))
if rst2man.found() if rst2man.found()
features += 'manpage-build' features += 'manpage-build'
mandir = get_option('mandir') mandir = get_option('mandir')