Left: | ||
Right: |
LEFT | RIGHT |
---|---|
1 # coding: utf-8 | 1 # coding: utf-8 |
2 | 2 |
3 # This Source Code Form is subject to the terms of the Mozilla Public | 3 # This Source Code Form is subject to the terms of the Mozilla Public |
4 # License, v. 2.0. If a copy of the MPL was not distributed with this | 4 # License, v. 2.0. If a copy of the MPL was not distributed with this |
5 # file, You can obtain one at http://mozilla.org/MPL/2.0/. | 5 # file, You can obtain one at http://mozilla.org/MPL/2.0/. |
6 | 6 |
7 import os, sys, re, subprocess, shutil, buildtools | 7 import os, sys, re, subprocess, shutil, buildtools |
8 from getopt import getopt, GetoptError | 8 from getopt import getopt, GetoptError |
9 from StringIO import StringIO | 9 from StringIO import StringIO |
10 from zipfile import ZipFile | 10 from zipfile import ZipFile |
(...skipping 457 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
468 | 468 |
469 with addCommand(showDescriptions, 'showdesc') as command: | 469 with addCommand(showDescriptions, 'showdesc') as command: |
470 command.shortDescription = 'Print description strings for all locales' | 470 command.shortDescription = 'Print description strings for all locales' |
471 command.description = 'Display description strings for all locales as specifie d in the corresponding meta.properties files.' | 471 command.description = 'Display description strings for all locales as specifie d in the corresponding meta.properties files.' |
472 command.addOption('Only include the given locales', short='l', long='locales', value='l1,l2,l3') | 472 command.addOption('Only include the given locales', short='l', long='locales', value='l1,l2,l3') |
473 command.params = '[options]' | 473 command.params = '[options]' |
474 command.supportedTypes = ('gecko') | 474 command.supportedTypes = ('gecko') |
475 | 475 |
476 with addCommand(generateDocs, 'docs') as command: | 476 with addCommand(generateDocs, 'docs') as command: |
477 command.shortDescription = 'Generate documentation (requires node.js)' | 477 command.shortDescription = 'Generate documentation (requires node.js)' |
478 command.description = 'Generate documentation files and write them into the sp ecified directory. This operation requires JsDoc to be installed.' | 478 command.description = 'Generate documentation files and write them into the sp ecified directory. This operation requires JsDoc 3 to be installed.' |
Wladimir Palant
2015/03/31 13:13:55
Nit: JsDoc 3
Sebastian Noack
2015/03/31 13:18:16
Done.
| |
479 command.addOption('Suppress JsDoc Toolkit output', short='q', long='quiet') | 479 command.addOption('Suppress JsDoc output', short='q', long='quiet') |
480 command.params = '[options] <directory>' | 480 command.params = '[options] <directory>' |
481 command.supportedTypes = ('gecko') | 481 command.supportedTypes = ('gecko') |
482 | 482 |
483 with addCommand(runReleaseAutomation, 'release') as command: | 483 with addCommand(runReleaseAutomation, 'release') as command: |
484 command.shortDescription = 'Run release automation' | 484 command.shortDescription = 'Run release automation' |
485 command.description = 'Note: If you are not the project owner then you '\ | 485 command.description = 'Note: If you are not the project owner then you '\ |
486 'probably don\'t want to run this!\n\n'\ | 486 'probably don\'t want to run this!\n\n'\ |
487 'Runs release automation: creates downloads for the new version, tags '\ | 487 'Runs release automation: creates downloads for the new version, tags '\ |
488 'source code repository as well as downloads and buildtools repository.' | 488 'source code repository as well as downloads and buildtools repository.' |
489 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')) | 489 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')) |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
560 if option in ('-h', '--help'): | 560 if option in ('-h', '--help'): |
561 usage(scriptName, type, command) | 561 usage(scriptName, type, command) |
562 sys.exit() | 562 sys.exit() |
563 commands[command](baseDir, scriptName, opts, args, type) | 563 commands[command](baseDir, scriptName, opts, args, type) |
564 else: | 564 else: |
565 print 'Command %s is not supported for this application type' % command | 565 print 'Command %s is not supported for this application type' % command |
566 usage(scriptName, type) | 566 usage(scriptName, type) |
567 else: | 567 else: |
568 print 'Command %s is unrecognized' % command | 568 print 'Command %s is unrecognized' % command |
569 usage(scriptName, type) | 569 usage(scriptName, type) |
LEFT | RIGHT |