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

Unified Diff: native_client_sdk/src/doc/doxygen/generate_docs.py

Issue 1536883002: [NaCl SDK] Re-generate docs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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 | « native_client_sdk/src/doc/cpp-api-dev.rst ('k') | native_client_sdk/src/doc/pepper_beta/index.rst » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: native_client_sdk/src/doc/doxygen/generate_docs.py
diff --git a/native_client_sdk/src/doc/doxygen/generate_docs.py b/native_client_sdk/src/doc/doxygen/generate_docs.py
index 13316efb03a10f8a14f930658b384b6f7ca8cb16..4cc475d076c233c2f550381c8e98d48fe0fc2d04 100755
--- a/native_client_sdk/src/doc/doxygen/generate_docs.py
+++ b/native_client_sdk/src/doc/doxygen/generate_docs.py
@@ -200,6 +200,18 @@ def GenerateDoxyfile(template_filename, out_dirname, doc_dirname, doxyfile):
'script_dirname': SCRIPT_DIR})
+def CheckDoxygenVersion(doxygen):
+ version = subprocess.check_output([doxygen, '--version']).strip()
+ url = 'http://ftp.stack.nl/pub/users/dimitri/doxygen-1.7.6.1.linux.bin.tar.gz'
+ if version != '1.7.6.1':
+ print 'Doxygen version 1.7.6.1 is required'
+ print 'The version being used (%s) is version %s' % (doxygen, version)
+ print 'The simplest way to grab this version is to download it directly:'
+ print url
+ print 'Then either add it to your $PATH or set $DOXYGEN to point to binary.'
+ sys.exit(1)
+
+
def RunDoxygen(out_dirname, doxyfile):
Trace('Removing old output directory %s' % out_dirname)
RemoveDir(out_dirname)
@@ -208,6 +220,7 @@ def RunDoxygen(out_dirname, doxyfile):
os.makedirs(out_dirname)
doxygen = os.environ.get('DOXYGEN', 'doxygen')
+ CheckDoxygenVersion(doxygen)
cmd = [doxygen, doxyfile]
Trace('Running Doxygen:\n %s' % ' '.join(cmd))
subprocess.check_call(cmd)
« no previous file with comments | « native_client_sdk/src/doc/cpp-api-dev.rst ('k') | native_client_sdk/src/doc/pepper_beta/index.rst » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698