| Left: | ||
| Right: |
| 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-2014 Eyeo GmbH | 4 # Copyright (C) 2006-2014 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 477 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 488 command.addOption('Suppress JsDoc Toolkit output', short='q', long='quiet') | 488 command.addOption('Suppress JsDoc Toolkit output', short='q', long='quiet') |
| 489 command.params = '[options] <directory>' | 489 command.params = '[options] <directory>' |
| 490 command.supportedTypes = ('gecko') | 490 command.supportedTypes = ('gecko') |
| 491 | 491 |
| 492 with addCommand(runReleaseAutomation, 'release') as command: | 492 with addCommand(runReleaseAutomation, 'release') as command: |
| 493 command.shortDescription = 'Run release automation' | 493 command.shortDescription = 'Run release automation' |
| 494 command.description = 'Note: If you are not the project owner then you '\ | 494 command.description = 'Note: If you are not the project owner then you '\ |
| 495 'probably don\'t want to run this!\n\n'\ | 495 'probably don\'t want to run this!\n\n'\ |
| 496 'Runs release automation: creates downloads for the new version, tags '\ | 496 'Runs release automation: creates downloads for the new version, tags '\ |
| 497 'source code repository as well as downloads and buildtools repository.' | 497 'source code repository as well as downloads and buildtools repository.' |
| 498 command.addOption('File containing private key and certificates required to si gn the release. Note that for Chrome releases this option needs to be specified twice: one key to sign Chrome builds and another to sign the Safari build.', sho rt='k', long='key', value='file', types=('gecko', 'chrome')) | 498 command.addOption('File containing private key and certificates required to si gn the release. Note that for Chrome releases this option needs to be specified twice: first a key to sign Chrome/Opera builds, then another to sign the Safari build.', short='k', long='key', value='file', types=('gecko', 'chrome')) |
|
Sebastian Noack
2014/05/02 08:29:09
You should explicitly mention that the key for Chr
Wladimir Palant
2014/05/02 10:50:50
Done.
Sebastian Noack
2014/05/02 10:54:15
Shouldn'T be a big deal for Chrome, since we have
| |
| 499 command.addOption('Directory containing downloads repository (if omitted ../do wnloads is assumed)', short='d', long='downloads', value='dir') | 499 command.addOption('Directory containing downloads repository (if omitted ../do wnloads is assumed)', short='d', long='downloads', value='dir') |
| 500 command.params = '[options] <version>' | 500 command.params = '[options] <version>' |
| 501 command.supportedTypes = ('gecko', 'chrome') | 501 command.supportedTypes = ('gecko', 'chrome') |
| 502 | 502 |
| 503 with addCommand(updatePSL, 'updatepsl') as command: | 503 with addCommand(updatePSL, 'updatepsl') as command: |
| 504 command.shortDescription = 'Updates Public Suffix List' | 504 command.shortDescription = 'Updates Public Suffix List' |
| 505 command.description = 'Downloads Public Suffix List (see http://publicsuffix.o rg/) and generates lib/publicSuffixList.js from it.' | 505 command.description = 'Downloads Public Suffix List (see http://publicsuffix.o rg/) and generates lib/publicSuffixList.js from it.' |
| 506 command.supportedTypes = ('chrome', 'opera') | 506 command.supportedTypes = ('chrome', 'opera') |
| 507 | 507 |
| 508 def getType(baseDir, scriptName, args): | 508 def getType(baseDir, scriptName, args): |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 569 if option in ('-h', '--help'): | 569 if option in ('-h', '--help'): |
| 570 usage(scriptName, type, command) | 570 usage(scriptName, type, command) |
| 571 sys.exit() | 571 sys.exit() |
| 572 commands[command](baseDir, scriptName, opts, args, type) | 572 commands[command](baseDir, scriptName, opts, args, type) |
| 573 else: | 573 else: |
| 574 print 'Command %s is not supported for this application type' % command | 574 print 'Command %s is not supported for this application type' % command |
| 575 usage(scriptName, type) | 575 usage(scriptName, type) |
| 576 else: | 576 else: |
| 577 print 'Command %s is unrecognized' % command | 577 print 'Command %s is unrecognized' % command |
| 578 usage(scriptName, type) | 578 usage(scriptName, type) |
| LEFT | RIGHT |