OLD | NEW |
(Empty) | |
| 1 #!/usr/bin/env python |
| 2 # Copyright 2016 The Chromium Authors. All rights reserved. |
| 3 # Use of this source code is governed by a BSD-style license that can be |
| 4 # found in the LICENSE file. |
| 5 |
| 6 """Generates a mini_installer with a higher version than an existing one.""" |
| 7 |
| 8 import optparse |
| 9 import subprocess |
| 10 import sys |
| 11 |
| 12 |
| 13 def main(): |
| 14 parser = optparse.OptionParser() |
| 15 parser.add_option('--out', help='Path to the generated mini_installer.') |
| 16 options, args = parser.parse_args() |
| 17 assert not args |
| 18 |
| 19 return subprocess.call([ |
| 20 'alternate_version_generator.exe', |
| 21 '--force', |
| 22 '--out=' + options.out, |
| 23 ]) |
| 24 |
| 25 |
| 26 if '__main__' == __name__: |
| 27 sys.exit(main()) |
OLD | NEW |