Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(74)

Side by Side Diff: client/samples/total/bin/start-server

Issue 8447006: Fling: Fix bit rot. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: total Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « client/fling/src/java/core/com/google/dart/fling/Http.java ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/env python2.6 1 #!/usr/bin/env python2.6
2 # Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 2 # Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
3 # for details. All rights reserved. Use of this source code is governed by a 3 # for details. All rights reserved. Use of this source code is governed by a
4 # BSD-style license that can be found in the LICENSE file. 4 # BSD-style license that can be found in the LICENSE file.
5 5
6 import optparse 6 import optparse
7 import os 7 import os
8 import subprocess 8 import subprocess
9 import sys 9 import sys
10 10
11 ROOT=os.path.abspath( 11 ROOT=os.path.abspath(
12 os.path.join(os.path.dirname(sys.argv[0]), '../../../../')) 12 os.path.join(os.path.dirname(sys.argv[0]), '../../../../'))
13 def rootPath(*args): 13 def rootPath(*args):
14 return os.path.join(ROOT, *args) 14 return os.path.join(ROOT, *args)
15 15
16 HERE = rootPath('client/samples/total') 16 HERE = rootPath('client/samples/total')
17 def herePath(*args): 17 def herePath(*args):
18 return os.path.join(HERE, *args) 18 return os.path.join(HERE, *args)
19 19
20 sys.path.append(rootPath('tools')) 20 sys.path.append(rootPath('tools'))
21 import utils 21 import utils
22 22
23 def GetOutputPath(mode): 23 def GetOutputPath(mode):
24 return rootPath( 24 return rootPath(
25 'compiler', 25 'compiler',
26 utils.GetBuildRoot(utils.GuessOS(), mode, 'dartc')) 26 utils.GetBuildRoot(utils.GuessOS(), mode, utils.GuessArchitecture()))
27 27
28 def BuildFling(mode): 28 def BuildFling(mode):
29 # Build dartc 29 # Build dartc
30 if subprocess.call([ 30 if subprocess.call([
31 '../tools/build.py', 31 '../tools/build.py',
32 '--mode=%s' % mode], 32 '--mode=%s' % mode],
33 cwd = rootPath('compiler')) != 0: 33 cwd = rootPath('compiler')) != 0:
34 return False 34 return False
35 if subprocess.call([ 35 if subprocess.call([
36 rootPath('third_party/apache_ant/v1_7_1/bin/ant'), 36 rootPath('third_party/apache_ant/v1_7_1/bin/ant'),
(...skipping 15 matching lines...) Expand all
52 action = 'store_false', 52 action = 'store_false',
53 default = True, 53 default = True,
54 help = 'Skip reubilding of fling') 54 help = 'Skip reubilding of fling')
55 parser.add_option('--mode', 55 parser.add_option('--mode',
56 dest = 'mode', 56 dest = 'mode',
57 default = "release", 57 default = "release",
58 help = 'Mode to use when building dependencies (release or debug)') 58 help = 'Mode to use when building dependencies (release or debug)')
59 options, args = parser.parse_args() 59 options, args = parser.parse_args()
60 if not options.build or BuildFling(options.mode): 60 if not options.build or BuildFling(options.mode):
61 RunFling(options.mode) 61 RunFling(options.mode)
OLDNEW
« no previous file with comments | « client/fling/src/java/core/com/google/dart/fling/Http.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698