From: Sebastian Pipping Date: Mon, 9 Jul 2012 15:47:38 +0000 (+0200) Subject: Man page: Make target "netboot" go before "netboot2" X-Git-Tag: CATALYST-2.0.10~2^2~8 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=8c60a2b9c53a1fa908e0f85cdb8b57269896b0b2;p=catalyst.git Man page: Make target "netboot" go before "netboot2" --- diff --git a/doc/make_target_table.py b/doc/make_target_table.py index b72935fa..378ae53c 100755 --- a/doc/make_target_table.py +++ b/doc/make_target_table.py @@ -15,8 +15,13 @@ import glob import re +def key_netboot_before_netboot2((target_name, module)): + return target_name + '1' + + if __name__ == '__main__': extractor = re.compile('^modules/(([^ ]+)_target).py$') + targets = list() for filename in sorted(glob.glob('modules/*_target.py')): if 'generic' in filename: continue @@ -28,6 +33,9 @@ if __name__ == '__main__': __import__(module_name) module = _sys.modules[module_name] + targets.append((target_name, module)) + + for target_name, module in sorted(targets, key=key_netboot_before_netboot2): print('`%s`;;' % target_name) # Replace blank lines with `+` (asciidoc list item continuation) print(module.__doc__.strip().replace('\n\n', '\n+\n'))