diff options
author | W. Trevor King <wking@drexel.edu> | 2012-07-09 16:23:18 +0200 |
---|---|---|
committer | Sebastian Pipping <sebastian@pipping.org> | 2012-07-09 16:23:18 +0200 |
commit | 0a99c494d4602ebb92f6d352f86ec519903fdc88 (patch) | |
tree | 58930b30f0d97b7e5ff7505a67b53e922bcf62e2 /doc/make_target_table.py | |
parent | Replace content on master with content from catalyst_2 (diff) | |
download | catalyst-0a99c494d4602ebb92f6d352f86ec519903fdc88.tar.gz catalyst-0a99c494d4602ebb92f6d352f86ec519903fdc88.tar.bz2 catalyst-0a99c494d4602ebb92f6d352f86ec519903fdc88.zip |
Introduce catalyst-spec(5) man page
Diffstat (limited to 'doc/make_target_table.py')
-rwxr-xr-x | doc/make_target_table.py | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/doc/make_target_table.py b/doc/make_target_table.py new file mode 100755 index 00000000..1bacbe28 --- /dev/null +++ b/doc/make_target_table.py @@ -0,0 +1,21 @@ +#!/usr/bin/env python +# Copyright (C) 2012 W. Trevor King <wking@drexel.edu> +# Licensed under GPL v2 or later + +# This script should be run from the root of the catalyst source. + +import sys as _sys + +_sys.path.insert(0, 'modules') # so we can find the `catalyst` module + +import catalyst.target as _catalyst_target + + +if __name__ == '__main__': + for module_name,module in sorted(_catalyst_target.get_targets().items()): + if hasattr(module, '__target_map'): + target_name = module.__target_map.keys()[0] + print('`{}`;;'.format(target_name)) + # Replace blank lines with `+` (asciidoc list item continuation) + print(module.__doc__.strip().replace('\n\n', '\n+\n')) + print('') |