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

Side by Side Diff: dart/compiler/scripts/generate_my_projects.py

Issue 20722006: Removed compiler/ directory from repository (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 4 months 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
OLDNEW
(Empty)
1 #!/usr/bin/env python
2 # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
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.
5
6 import os
7 import sys
8
9
10 def Main():
11 def normjoin(*args):
12 return os.path.normpath(os.path.join(*args))
13
14 compiler = normjoin(sys.argv[0], os.pardir, os.pardir)
15 editor = normjoin(compiler, os.pardir, 'editor')
16
17 locations = {
18 'compiler': compiler,
19 'editor': editor,
20 }
21
22 generate_source_list_calls = [
23 # The paths are relative to dart/compiler/
24 {
25 "name" : "java",
26 "output" : "%(compiler)s/sources" % locations,
27 "path" : "java",
28 },
29 {
30 "name" : "javatests",
31 "output" : "%(compiler)s/test_sources" % locations,
32 "path" : "javatests",
33 },
34 # The paths are relative to dart/editor/
35 {
36 "name" : "plugin_engine_java",
37 "output" : "%(editor)s/plugin_engine_sources" % locations,
38 "path" : "tools/plugins/com.google.dart.engine",
39 },
40 {
41 "name" : "plugin_command_analyze_java",
42 "output" : "%(editor)s/plugin_command_analyze_sources" % locations,
43 "path" : "tools/plugins/com.google.dart.command.analyze",
44 },
45 ]
46
47 for call_options in generate_source_list_calls:
48 command = ("python %(compiler)s/generate_source_list.py " % locations +
49 "%(name)s %(output)s %(path)s" % call_options)
50 exit_code = os.system(command)
51 if exit_code:
52 return exit_code
53
54 if '--no-gyp' in sys.argv:
55 print '--no-gyp is deprecated.'
56
57 return 0
58
59
60 if __name__ == '__main__':
61 sys.exit(Main())
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698