Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(136)

Unified Diff: slave/skia_slave_scripts/generate_doxygen.py

Issue 648353002: Remove Skia's forked buildbot code (Closed) Base URL: https://skia.googlesource.com/buildbot.git@master
Patch Set: Address comment Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « slave/skia_slave_scripts/flavor_utils/xsan_build_step_utils.py ('k') | slave/skia_slave_scripts/install.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: slave/skia_slave_scripts/generate_doxygen.py
diff --git a/slave/skia_slave_scripts/generate_doxygen.py b/slave/skia_slave_scripts/generate_doxygen.py
deleted file mode 100755
index 02dd65d24b226f29c3becf3eeb79208c6529d535..0000000000000000000000000000000000000000
--- a/slave/skia_slave_scripts/generate_doxygen.py
+++ /dev/null
@@ -1,58 +0,0 @@
-#!/usr/bin/env python
-# Copyright (c) 2014 The Chromium Authors. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-"""Generate Doxygen documentation."""
-
-import datetime
-import os
-import shutil
-import sys
-
-from build_step import BuildStep
-from utils import file_utils
-from py.utils import shell_utils
-
-DOXYFILE_BASENAME = 'Doxyfile' # must match name of Doxyfile in skia root
-DOXYGEN_BINARY = 'doxygen'
-DOXYGEN_CONFIG_DIR = os.path.join(os.pardir, os.pardir, 'doxygen-config')
-DOXYGEN_WORKING_DIR = os.path.join(os.pardir, os.pardir, 'doxygen')
-
-IFRAME_FOOTER_TEMPLATE = """
-<html><body><address style="text-align: right;"><small>
-Generated at %s for skia
-by <a href="http://www.doxygen.org/index.html">doxygen</a>
-%s </small></address></body></html>
-"""
-
-
-class GenerateDoxygen(BuildStep):
- def _Run(self):
- # Create empty dir and add static_footer.txt
- file_utils.create_clean_local_dir(DOXYGEN_WORKING_DIR)
- static_footer_path = os.path.join(DOXYGEN_WORKING_DIR, 'static_footer.txt')
- shutil.copyfile(os.path.join('tools', 'doxygen_footer.txt'),
- static_footer_path)
-
- # Make copy of doxygen config file, overriding any necessary configs,
- # and run doxygen.
- file_utils.create_clean_local_dir(DOXYGEN_CONFIG_DIR)
- modified_doxyfile = os.path.join(DOXYGEN_CONFIG_DIR, DOXYFILE_BASENAME)
- with open(DOXYFILE_BASENAME, 'r') as reader:
- with open(modified_doxyfile, 'w') as writer:
- shutil.copyfileobj(reader, writer)
- writer.write('OUTPUT_DIRECTORY = %s\n' % DOXYGEN_WORKING_DIR)
- writer.write('HTML_FOOTER = %s\n' % static_footer_path)
- shell_utils.run([DOXYGEN_BINARY, modified_doxyfile])
-
- # Create iframe_footer.html
- with open(os.path.join(DOXYGEN_WORKING_DIR, 'iframe_footer.html'),
- 'w') as fh:
- fh.write(IFRAME_FOOTER_TEMPLATE % (
- datetime.datetime.now().isoformat(' '),
- shell_utils.run([DOXYGEN_BINARY, '--version'])))
-
-
-if '__main__' == __name__:
- sys.exit(BuildStep.RunBuildStep(GenerateDoxygen))
« no previous file with comments | « slave/skia_slave_scripts/flavor_utils/xsan_build_step_utils.py ('k') | slave/skia_slave_scripts/install.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698