From 4f03c8cc0927f6dc893b7c605d49e16bc26c13f1 Mon Sep 17 00:00:00 2001 From: Johannes Findeisen Date: Wed, 19 Oct 2022 02:19:32 +0200 Subject: [PATCH] Bug fix: Forgot to make it possible to create HTML pages of all man pages. --- man2book | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/man2book b/man2book index 86a9556..01d23ec 100755 --- a/man2book +++ b/man2book @@ -6,12 +6,12 @@ import os # have no limit. LIMIT = 0 MANPAGE_PATH = '/usr/share/man/' -OUTPUT_DIR = '~/code/man2book/output/' +OUTPUT_DIR = './output/' TMP_DIR = '/tmp' __author__ = 'Johannes Findeisen ' -__version__ = '0.0.1' +__version__ = '0.0.2' def parse_args(): @@ -68,6 +68,9 @@ for section in sections: # create and to create a toc. maybe the anchor in the toc can be a hash os.system('/usr/bin/man -Thtml ' + manpage + ' > ' + OUTPUT_DIR + 'man' + section + '.' + manpage + '.html') + else: + os.system('/usr/bin/man -Thtml ' + manpage + ' > ' + OUTPUT_DIR + 'man' + section + + '.' + manpage + '.html') if LIMIT > 0: if x == LIMIT: break