| OLD | NEW | 
|---|
| 1 #!/usr/bin/python | 1 #!/usr/bin/python | 
| 2 | 2 | 
| 3 # Copyright (c) 2014 The Chromium Authors. All rights reserved. | 3 # Copyright (c) 2014 The Chromium Authors. All rights reserved. | 
| 4 # Use of this source code is governed by a BSD-style license that can be | 4 # Use of this source code is governed by a BSD-style license that can be | 
| 5 # found in the LICENSE file. | 5 # found in the LICENSE file. | 
| 6 | 6 | 
| 7 import collections | 7 import collections | 
| 8 import json | 8 import json | 
| 9 import optparse | 9 import optparse | 
| 10 import os | 10 import os | 
| (...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 218     doxyfile_cpp = '' | 218     doxyfile_cpp = '' | 
| 219 | 219 | 
| 220     # Generate Root index | 220     # Generate Root index | 
| 221     rst_index_root = os.path.join(DOC_DIR, pepper_dirname, 'index.rst') | 221     rst_index_root = os.path.join(DOC_DIR, pepper_dirname, 'index.rst') | 
| 222     RunRstIndex('root', channel, pepper_version, out_dirname, rst_index_root) | 222     RunRstIndex('root', channel, pepper_version, out_dirname, rst_index_root) | 
| 223 | 223 | 
| 224     # Generate C docs | 224     # Generate C docs | 
| 225     out_dirname_c = os.path.join(out_dirname, 'c') | 225     out_dirname_c = os.path.join(out_dirname, 'c') | 
| 226     doxyfile_c = os.path.join(doxyfile_dirname, 'Doxyfile.c.%s' % channel) | 226     doxyfile_c = os.path.join(doxyfile_dirname, 'Doxyfile.c.%s' % channel) | 
| 227     doxyfile_c_template = os.path.join(SCRIPT_DIR, 'Doxyfile.c.template') | 227     doxyfile_c_template = os.path.join(SCRIPT_DIR, 'Doxyfile.c.template') | 
| 228     rst_index_c = os.path.join(root_dirname, pepper_dirname, 'c', 'index.rst') | 228     rst_index_c = os.path.join(DOC_DIR, pepper_dirname, 'c', 'index.rst') | 
| 229     GenerateDoxyfile(doxyfile_c_template, out_dirname_c, svn_dirname, | 229     GenerateDoxyfile(doxyfile_c_template, out_dirname_c, svn_dirname, | 
| 230                      doxyfile_c) | 230                      doxyfile_c) | 
| 231     RunDoxygen(out_dirname_c, doxyfile_c) | 231     RunDoxygen(out_dirname_c, doxyfile_c) | 
| 232     RunDoxyCleanup(out_dirname_c) | 232     RunDoxyCleanup(out_dirname_c) | 
| 233     RunRstIndex('c', channel, pepper_version, out_dirname_c, rst_index_c) | 233     RunRstIndex('c', channel, pepper_version, out_dirname_c, rst_index_c) | 
| 234 | 234 | 
| 235     # Generate C++ docs | 235     # Generate C++ docs | 
| 236     out_dirname_cpp = os.path.join(out_dirname, 'cpp') | 236     out_dirname_cpp = os.path.join(out_dirname, 'cpp') | 
| 237     doxyfile_cpp = os.path.join(doxyfile_dirname, 'Doxyfile.cpp.%s' % channel) | 237     doxyfile_cpp = os.path.join(doxyfile_dirname, 'Doxyfile.cpp.%s' % channel) | 
| 238     doxyfile_cpp_template = os.path.join(SCRIPT_DIR, 'Doxyfile.cpp.template') | 238     doxyfile_cpp_template = os.path.join(SCRIPT_DIR, 'Doxyfile.cpp.template') | 
| 239     rst_index_cpp = os.path.join(root_dirname, pepper_dirname, 'cpp', | 239     rst_index_cpp = os.path.join(DOC_DIR, pepper_dirname, 'cpp', 'index.rst') | 
| 240                                  'index.rst') |  | 
| 241     GenerateDoxyfile(doxyfile_cpp_template, out_dirname_cpp, svn_dirname, | 240     GenerateDoxyfile(doxyfile_cpp_template, out_dirname_cpp, svn_dirname, | 
| 242                      doxyfile_cpp) | 241                      doxyfile_cpp) | 
| 243     RunDoxygen(out_dirname_cpp, doxyfile_cpp) | 242     RunDoxygen(out_dirname_cpp, doxyfile_cpp) | 
| 244     RunDoxyCleanup(out_dirname_cpp) | 243     RunDoxyCleanup(out_dirname_cpp) | 
| 245     RunRstIndex('cpp', channel, pepper_version, out_dirname_cpp, rst_index_cpp) | 244     RunRstIndex('cpp', channel, pepper_version, out_dirname_cpp, rst_index_cpp) | 
| 246   finally: | 245   finally: | 
| 247     # Cleanup | 246     # Cleanup | 
| 248     RemoveDir(svn_dirname) | 247     RemoveDir(svn_dirname) | 
| 249     RemoveDir(doxyfile_dirname) | 248     RemoveDir(doxyfile_dirname) | 
| 250 | 249 | 
| (...skipping 17 matching lines...) Expand all  Loading... | 
| 268   return 0 | 267   return 0 | 
| 269 | 268 | 
| 270 | 269 | 
| 271 if __name__ == '__main__': | 270 if __name__ == '__main__': | 
| 272   try: | 271   try: | 
| 273     rtn = main(sys.argv[1:]) | 272     rtn = main(sys.argv[1:]) | 
| 274   except KeyboardInterrupt: | 273   except KeyboardInterrupt: | 
| 275     sys.stderr.write('%s: interrupted\n' % os.path.basename(__file__)) | 274     sys.stderr.write('%s: interrupted\n' % os.path.basename(__file__)) | 
| 276     rtn = 1 | 275     rtn = 1 | 
| 277   sys.exit(rtn) | 276   sys.exit(rtn) | 
| OLD | NEW | 
|---|