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

Side by Side Diff: packagerChrome.py

Issue 9259023: Use platform-dependent metadata files to allow multiple builds from the same repository (Closed)
Patch Set: Created Jan. 25, 2013, 7:13 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« build.py ('K') | « packager.py ('k') | packagerGecko.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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-2012 Eyeo GmbH 4 # Copyright (C) 2006-2012 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,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of 11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 # GNU General Public License for more details. 13 # GNU General Public License for more details.
14 # 14 #
15 # You should have received a copy of the GNU General Public License 15 # You should have received a copy of the GNU General Public License
16 # along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>. 16 # along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>.
17 17
18 import sys, os, re, json, struct 18 import sys, os, re, json, struct
19 from StringIO import StringIO 19 from StringIO import StringIO
20 20
21 from packager import getDefaultFileName, readMetadata, getBuildVersion, getTempl ate, Files 21 import packager
22 from packager import getDefaultFileName, getBuildVersion, getTemplate, Files
22 23
23 defaultLocale = 'en_US' 24 defaultLocale = 'en_US'
24 25
26 def getMetadataPath(baseDir):
Felix Dahlke 2013/01/25 07:49:43 This function wasn't previously defined or importe
Wladimir Palant 2013/01/25 08:23:10 You are right. I realized that geckoPackager.getMe
27 return packager.getMetadataPath(baseDir, 'chrome')
28
29 def readMetadata(baseDir):
30 return packager.readMetadata(baseDir, 'chrome')
31
25 def getIgnoredFiles(params): 32 def getIgnoredFiles(params):
26 return set(('store.description',)) 33 return set(('store.description',))
27 34
28 def getPackageFiles(params): 35 def getPackageFiles(params):
29 result = set(('_locales', 'icons', 'jquery-ui', 'lib', 'skin', 'ui',)) 36 result = set(('_locales', 'icons', 'jquery-ui', 'lib', 'skin', 'ui',))
30 37
31 if params['devenv']: 38 if params['devenv']:
32 result.add('qunit') 39 result.add('qunit')
33 40
34 baseDir = params['baseDir'] 41 baseDir = params['baseDir']
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 def shutdown_server(server): 216 def shutdown_server(server):
210 time.sleep(10) 217 time.sleep(10)
211 server.shutdown() 218 server.shutdown()
212 thread.start_new_thread(shutdown_server, (server,)) 219 thread.start_new_thread(shutdown_server, (server,))
213 server.serve_forever() 220 server.serve_forever()
214 221
215 if connections[0] == 0: 222 if connections[0] == 0:
216 print 'Warning: No incoming connections, extension probably not active in th e browser yet' 223 print 'Warning: No incoming connections, extension probably not active in th e browser yet'
217 else: 224 else:
218 print 'Handled %i connection(s)' % connections[0] 225 print 'Handled %i connection(s)' % connections[0]
OLDNEW
« build.py ('K') | « packager.py ('k') | packagerGecko.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld