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

Side by Side Diff: chrome/tools/build/win/create_installer_archive.py

Issue 254001: Don't assume that we build from the src/chrome folder.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/python 1 #!/usr/bin/python
2 # Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2006-2009 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 """Script to create Chrome Installer archive. 6 """Script to create Chrome Installer archive.
7 7
8 This script is used to create an archive of all the files required for a 8 This script is used to create an archive of all the files required for a
9 Chrome install in appropriate directory structure. It reads chrome.release 9 Chrome install in appropriate directory structure. It reads chrome.release
10 file as input, creates chrome.7z archive, compresses setup.exe and 10 file as input, creates chrome.7z archive, compresses setup.exe and
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 VERSION_FILE = "VERSION" 48 VERSION_FILE = "VERSION"
49 49
50 def BuildVersion(output_dir): 50 def BuildVersion(output_dir):
51 """Returns the full build version string constructed from information in 51 """Returns the full build version string constructed from information in
52 VERSION_FILE. Any segment not found in that file will default to '0'. 52 VERSION_FILE. Any segment not found in that file will default to '0'.
53 """ 53 """
54 major = 0 54 major = 0
55 minor = 0 55 minor = 0
56 build = 0 56 build = 0
57 patch = 0 57 patch = 0
58 for line in open(os.path.join(output_dir, "..", VERSION_FILE), 'r'): 58 for line in open(os.path.join(output_dir, "..", "..", "chrome", VERSION_FILE), 'r'):
M-A Ruel 2009/09/27 23:26:29 80 cols
59 line = line.rstrip() 59 line = line.rstrip()
60 if line.startswith('MAJOR='): 60 if line.startswith('MAJOR='):
61 major = line[6:] 61 major = line[6:]
62 elif line.startswith('MINOR='): 62 elif line.startswith('MINOR='):
63 minor = line[6:] 63 minor = line[6:]
64 elif line.startswith('BUILD='): 64 elif line.startswith('BUILD='):
65 build = line[6:] 65 build = line[6:]
66 elif line.startswith('PATCH='): 66 elif line.startswith('PATCH='):
67 patch = line[6:] 67 patch = line[6:]
68 return '%s.%s.%s.%s' % (major, minor, build, patch) 68 return '%s.%s.%s.%s' % (major, minor, build, patch)
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after
300 '& chrome.7z.') 300 '& chrome.7z.')
301 option_parser.add_option('-f', '--setup_exe_format', default='COMPRESSED', 301 option_parser.add_option('-f', '--setup_exe_format', default='COMPRESSED',
302 help='How setup.exe should be included {COMPRESSED|DIFF|FULL}.') 302 help='How setup.exe should be included {COMPRESSED|DIFF|FULL}.')
303 option_parser.add_option('-a', '--diff_algorithm', default='BSDIFF', 303 option_parser.add_option('-a', '--diff_algorithm', default='BSDIFF',
304 help='Diff algorithm to use when generating differential patches ' + 304 help='Diff algorithm to use when generating differential patches ' +
305 '{BSDIFF|COURGETTE}.') 305 '{BSDIFF|COURGETTE}.')
306 306
307 options, args = option_parser.parse_args() 307 options, args = option_parser.parse_args()
308 print sys.argv 308 print sys.argv
309 sys.exit(main(options)) 309 sys.exit(main(options))
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698