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

Unified Diff: ppapi/generators/idl_generator.py

Issue 8478005: Allow defaults for generator which will check all available versions. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 9 years, 1 month 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 | « ppapi/generators/generator.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/generators/idl_generator.py
===================================================================
--- ppapi/generators/idl_generator.py (revision 108672)
+++ ppapi/generators/idl_generator.py (working copy)
@@ -12,7 +12,7 @@
GeneratorList = []
Option('release', 'Which release to generate.', default='')
-Option('range', 'Which ranges in the form of MIN,MAX.', default='M13,M16')
+Option('range', 'Which ranges in the form of MIN,MAX.', default='start,end')
#
@@ -66,6 +66,8 @@
rangestr = GetOption('range')
releasestr = GetOption('release')
+ print "Found releases: %s" % ast.releases
+
# Check for a range option which over-rides a release option
if not releasestr and rangestr:
range_list = rangestr.split(',')
@@ -75,6 +77,13 @@
else:
vmin = range_list[0]
vmax = range_list[1]
+
+ # Generate 'start' and 'end' represent first and last found.
+ if vmin == 'start':
+ vmin = ast.releases[0]
+ if vmax == 'end':
+ vmax = ast.releases[-1]
+
vmin = ast.releases.index(vmin)
vmax = ast.releases.index(vmax) + 1
range = ast.releases[vmin:vmax]
« no previous file with comments | « ppapi/generators/generator.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698