Merge revision 845 changes:

- Add about:version, about:credits and about:license internal URLs (issue #731).
- Centralize retrieval of the CEF major version number from a new VERSION file.

git-svn-id: https://chromiumembedded.googlecode.com/svn/branches/1271@846 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
Marshall Greenblatt
2012-10-08 17:48:20 +00:00
parent c5bb1d019a
commit 4c4206604d
25 changed files with 1377 additions and 633 deletions

View File

@@ -109,3 +109,11 @@ def make_dir(name, quiet = True):
def get_files(search_glob):
""" Returns all files matching the search glob. """
return iglob(search_glob)
def read_version_file(file, args):
""" Read and parse a version file (key=value pairs, one per line). """
lines = read_file(file).split("\n")
for line in lines:
parts = line.split('=', 1)
if len(parts) == 2:
args[parts[0]] = parts[1]