aboutsummaryrefslogtreecommitdiffstats
path: root/src/scripts/install.py
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2017-12-11 23:42:50 -0500
committerJack Lloyd <[email protected]>2017-12-11 23:49:59 -0500
commita4b39d62ffd933f5056d8d94d6e16054986d2d01 (patch)
tree834ad459bdadaf2e88cbd7d825bf25308d678160 /src/scripts/install.py
parent3a6a92332f808de1eb507a073d8b71e689152fee (diff)
Add ability to generate man page with rst2man fixing #1349
Diffstat (limited to 'src/scripts/install.py')
-rwxr-xr-xsrc/scripts/install.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/scripts/install.py b/src/scripts/install.py
index d30493ebe..243d58eda 100755
--- a/src/scripts/install.py
+++ b/src/scripts/install.py
@@ -253,6 +253,13 @@ def main(args):
for f in [f for f in os.listdir(cfg['doc_dir']) if f.endswith('.txt')]:
copy_file(os.path.join(cfg['doc_dir'], f), prepend_destdir(os.path.join(target_doc_dir, f)))
+ if cfg['with_rst2man']:
+ man1_dir = prepend_destdir(os.path.join(options.prefix, os.path.join(cfg['mandir'], 'man1')))
+ makedirs(man1_dir)
+
+ copy_file(os.path.join(cfg['build_dir'], 'botan.1'),
+ os.path.join(man1_dir, 'botan.1'))
+
logging.info('Botan %s installation complete', cfg['version'])
return 0