Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Delta Between Two Patch Sets: build.py

Issue 29337971: Issue 3760 - Removed support for Opera builds (Closed)
Left Patch Set: Created March 8, 2016, 4:56 p.m.
Right Patch Set: Updated help text for -k option Created March 8, 2016, 6:26 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « no previous file | manifest.json.tmpl » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
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 503 matching lines...) Expand 10 before | Expand all | Expand 10 after
514 command.addOption('Suppress JsDoc output', short='q', long='quiet') 514 command.addOption('Suppress JsDoc output', short='q', long='quiet')
515 command.params = '[options] <directory>' 515 command.params = '[options] <directory>'
516 command.supportedTypes = ('gecko', 'chrome') 516 command.supportedTypes = ('gecko', 'chrome')
517 517
518 with addCommand(runReleaseAutomation, 'release') as command: 518 with addCommand(runReleaseAutomation, 'release') as command:
519 command.shortDescription = 'Run release automation' 519 command.shortDescription = 'Run release automation'
520 command.description = 'Note: If you are not the project owner then you '\ 520 command.description = 'Note: If you are not the project owner then you '\
521 'probably don\'t want to run this!\n\n'\ 521 'probably don\'t want to run this!\n\n'\
522 'Runs release automation: creates downloads for the new version, tags '\ 522 'Runs release automation: creates downloads for the new version, tags '\
523 'source code repository as well as downloads and buildtools repository.' 523 'source code repository as well as downloads and buildtools repository.'
524 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')) 524 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 builds, then another to sign the Safari build. ', short='k', long='key', value='file', types=('gecko', 'chrome'))
kzar 2016/03/08 17:45:11 Nit: I guess this documentation should be changed
Sebastian Noack 2016/03/08 18:26:34 Done.
525 command.addOption('Directory containing downloads repository (if omitted ../do wnloads is assumed)', short='d', long='downloads', value='dir') 525 command.addOption('Directory containing downloads repository (if omitted ../do wnloads is assumed)', short='d', long='downloads', value='dir')
526 command.params = '[options] <version>' 526 command.params = '[options] <version>'
527 command.supportedTypes = ('gecko', 'chrome') 527 command.supportedTypes = ('gecko', 'chrome')
528 528
529 with addCommand(updatePSL, 'updatepsl') as command: 529 with addCommand(updatePSL, 'updatepsl') as command:
530 command.shortDescription = 'Updates Public Suffix List' 530 command.shortDescription = 'Updates Public Suffix List'
531 command.description = 'Downloads Public Suffix List (see http://publicsuffix.o rg/) and generates lib/publicSuffixList.js from it.' 531 command.description = 'Downloads Public Suffix List (see http://publicsuffix.o rg/) and generates lib/publicSuffixList.js from it.'
532 command.supportedTypes = ('chrome',) 532 command.supportedTypes = ('chrome',)
533 533
534 def getType(baseDir, scriptName, args): 534 def getType(baseDir, scriptName, args):
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
595 if option in ('-h', '--help'): 595 if option in ('-h', '--help'):
596 usage(scriptName, type, command) 596 usage(scriptName, type, command)
597 sys.exit() 597 sys.exit()
598 commands[command](baseDir, scriptName, opts, args, type) 598 commands[command](baseDir, scriptName, opts, args, type)
599 else: 599 else:
600 print 'Command %s is not supported for this application type' % command 600 print 'Command %s is not supported for this application type' % command
601 usage(scriptName, type) 601 usage(scriptName, type)
602 else: 602 else:
603 print 'Command %s is unrecognized' % command 603 print 'Command %s is unrecognized' % command
604 usage(scriptName, type) 604 usage(scriptName, type)
LEFTRIGHT
« no previous file | manifest.json.tmpl » ('j') | Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Toggle Comments ('s')

Powered by Google App Engine
This is Rietveld