LEFT | RIGHT |
1 # coding: utf-8 | 1 # coding: utf-8 |
2 | 2 |
3 # This file is part of the Adblock Plus build tools, | 3 # This file is part of the Adblock Plus build tools, |
4 # Copyright (C) 2006-2013 Eyeo GmbH | 4 # Copyright (C) 2006-2013 Eyeo GmbH |
5 # | 5 # |
6 # Adblock Plus is free software: you can redistribute it and/or modify | 6 # Adblock Plus is free software: you can redistribute it and/or modify |
7 # it under the terms of the GNU General Public License version 3 as | 7 # it under the terms of the GNU General Public License version 3 as |
8 # published by the Free Software Foundation. | 8 # published by the Free Software Foundation. |
9 # | 9 # |
10 # Adblock Plus is distributed in the hope that it will be useful, | 10 # Adblock Plus is distributed in the hope that it will be useful, |
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
195 packager.createBuild(baseDir, type=type, outFile=outFile, locales=locales, b
uildNum=buildNum, | 195 packager.createBuild(baseDir, type=type, outFile=outFile, locales=locales, b
uildNum=buildNum, |
196 releaseBuild=releaseBuild, keyFile=keyFile, | 196 releaseBuild=releaseBuild, keyFile=keyFile, |
197 multicompartment=multicompartment) | 197 multicompartment=multicompartment) |
198 elif type == 'chrome' or type == 'opera': | 198 elif type == 'chrome' or type == 'opera': |
199 import buildtools.packagerChrome as packager | 199 import buildtools.packagerChrome as packager |
200 packager.createBuild(baseDir, type=type, outFile=outFile, buildNum=buildNum, | 200 packager.createBuild(baseDir, type=type, outFile=outFile, buildNum=buildNum, |
201 releaseBuild=releaseBuild, keyFile=keyFile, | 201 releaseBuild=releaseBuild, keyFile=keyFile, |
202 experimentalAPI=experimentalAPI) | 202 experimentalAPI=experimentalAPI) |
203 elif type == 'safari': | 203 elif type == 'safari': |
204 import buildtools.packagerSafari as packager | 204 import buildtools.packagerSafari as packager |
205 packager.createBuild(baseDir, type=type, outFile=outFile, buildNum=buildNum,
releaseBuild=releaseBuild, keyFile=keyFile) | 205 packager.createBuild(baseDir, type=type, outFile=outFile, buildNum=buildNum, |
206 | 206 releaseBuild=releaseBuild, keyFile=keyFile) |
207 | 207 |
208 | 208 |
209 def runAutoInstall(baseDir, scriptName, opts, args, type): | 209 def runAutoInstall(baseDir, scriptName, opts, args, type): |
210 if len(args) == 0: | 210 if len(args) == 0: |
211 print 'Port of the Extension Auto-Installer needs to be specified' | 211 print 'Port of the Extension Auto-Installer needs to be specified' |
212 usage(scriptName, type, 'autoinstall') | 212 usage(scriptName, type, 'autoinstall') |
213 return | 213 return |
214 | 214 |
215 multicompartment = False | 215 multicompartment = False |
216 for option, value in opts: | 216 for option, value in opts: |
(...skipping 349 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
566 if option in ('-h', '--help'): | 566 if option in ('-h', '--help'): |
567 usage(scriptName, type, command) | 567 usage(scriptName, type, command) |
568 sys.exit() | 568 sys.exit() |
569 commands[command](baseDir, scriptName, opts, args, type) | 569 commands[command](baseDir, scriptName, opts, args, type) |
570 else: | 570 else: |
571 print 'Command %s is not supported for this application type' % command | 571 print 'Command %s is not supported for this application type' % command |
572 usage(scriptName, type) | 572 usage(scriptName, type) |
573 else: | 573 else: |
574 print 'Command %s is unrecognized' % command | 574 print 'Command %s is unrecognized' % command |
575 usage(scriptName, type) | 575 usage(scriptName, type) |
LEFT | RIGHT |