aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Dolbec <dolsen@gentoo.org>2013-06-05 10:38:44 -0700
committerBrian Dolbec <dolsen@gentoo.org>2015-02-26 11:15:21 -0800
commit3ec4d246bcca3b0cb6dcfbaf404e55bd241976d7 (patch)
tree9f6177fd4deaaa2717b603a7855829f00bae6d48 /doc/make_target_table.py
parentdoc/catalyst-config.5.txt: Document linking issues with binary packages (diff)
downloadcatalyst-3ec4d246bcca3b0cb6dcfbaf404e55bd241976d7.tar.gz
catalyst-3ec4d246bcca3b0cb6dcfbaf404e55bd241976d7.tar.bz2
catalyst-3ec4d246bcca3b0cb6dcfbaf404e55bd241976d7.zip
update doc scripts for the new structure
Diffstat (limited to 'doc/make_target_table.py')
-rwxr-xr-xdoc/make_target_table.py13
1 files changed, 7 insertions, 6 deletions
diff --git a/doc/make_target_table.py b/doc/make_target_table.py
index ad4d2928..9e7ebe83 100755
--- a/doc/make_target_table.py
+++ b/doc/make_target_table.py
@@ -1,16 +1,17 @@
#!/usr/bin/env python2
# Copyright (C) 2012 W. Trevor King <wking@drexel.edu>
# Copyright (C) 2012 Sebastian Pipping <sebastian@pipping.org>
+# Copyright (C) 2013 Brian dolbec <dolsen@gentoo.org>
# Licensed under GPL v2 or later
# This script should be run from the root of the catalyst source.
+# source the testpath file then run "doc/make_target_table.py"
+
from __future__ import print_function
import sys as _sys
-_sys.path.insert(0, 'modules') # so we can find the `catalyst` module
-
import glob
import re
@@ -20,15 +21,15 @@ def key_netboot_before_netboot2((target_name, module)):
if __name__ == '__main__':
- extractor = re.compile('^modules/(([^ ]+)_target).py$')
+ extractor = re.compile('^catalyst/targets/(([^ ]+)).py$')
targets = list()
- for filename in sorted(glob.glob('modules/*_target.py')):
- if 'generic' in filename:
+ for filename in sorted(glob.glob('catalyst/targets/*.py')):
+ if '__init__' in filename:
continue
match = extractor.match(filename)
target_name = match.group(2).replace('_', '-')
- module_name = match.group(1)
+ module_name = 'catalyst.targets.' + match.group(1)
__import__(module_name)
module = _sys.modules[module_name]