mirror of https://github.com/borgbackup/borg.git
Merge pull request #3380 from milkey-mouse/fix-build-man-bp1.1
Fix build_man issues (1.1 backport)
This commit is contained in:
commit
1f41b251f7
2
setup.py
2
setup.py
|
@ -674,7 +674,7 @@ class build_man(Command):
|
||||||
roles.register_local_role('issue', issue)
|
roles.register_local_role('issue', issue)
|
||||||
# We give the source_path so that docutils can find relative includes
|
# We give the source_path so that docutils can find relative includes
|
||||||
# as-if the document where located in the docs/ directory.
|
# as-if the document where located in the docs/ directory.
|
||||||
man_page = publish_string(source=rst, source_path='docs/virtmanpage.rst', writer=manpage.Writer())
|
man_page = publish_string(source=rst, source_path='docs/%s.rst' % name, writer=manpage.Writer())
|
||||||
with open('docs/man/%s.1' % name, 'wb') as fd:
|
with open('docs/man/%s.1' % name, 'wb') as fd:
|
||||||
fd.write(man_page)
|
fd.write(man_page)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue