OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 | 2 |
3 # This file is part of Adblock Plus <https://adblockplus.org/>, | 3 # This file is part of Adblock Plus <https://adblockplus.org/>, |
4 # Copyright (C) 2006-present eyeo GmbH | 4 # Copyright (C) 2006-present eyeo GmbH |
5 # | 5 # |
6 # Adblock Plus is free software: you can redistribute it and/or modify | 6 # Adblock Plus is free software: you can redistribute it and/or modify |
7 # it under the terms of the GNU General Public License version 3 as | 7 # it under the terms of the GNU General Public License version 3 as |
8 # published by the Free Software Foundation. | 8 # published by the Free Software Foundation. |
9 # | 9 # |
10 # Adblock Plus is distributed in the hope that it will be useful, | 10 # Adblock Plus is distributed in the hope that it will be useful, |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 except OSError: | 78 except OSError: |
79 pass | 79 pass |
80 | 80 |
81 for name, data in projects.iteritems(): | 81 for name, data in projects.iteritems(): |
82 sources_dir = os.path.join(temp_directory, name) | 82 sources_dir = os.path.join(temp_directory, name) |
83 sync_sources(sources_dir, data['repository']) | 83 sync_sources(sources_dir, data['repository']) |
84 output_dir = sources_dir.rstrip(os.path.sep) + '.docs' | 84 output_dir = sources_dir.rstrip(os.path.sep) + '.docs' |
85 run_generation_command(data['command'], sources_dir, output_dir) | 85 run_generation_command(data['command'], sources_dir, output_dir) |
86 replace_dir(output_dir, data['target_directory']) | 86 replace_dir(output_dir, data['target_directory']) |
87 | 87 |
| 88 |
88 if __name__ == '__main__': | 89 if __name__ == '__main__': |
89 config = get_config() | 90 config = get_config() |
90 projects = read_projects(config) | 91 projects = read_projects(config) |
91 generate_docs(projects, config) | 92 generate_docs(projects, config) |
OLD | NEW |