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

Unified Diff: dart/tools/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, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « dart/tools/compiler_scripts/dart_analyzer.sh ('k') | dart/tools/compiler_scripts/generate_source_list.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/tools/compiler_scripts/generate_my_projects.py
diff --git a/dart/compiler/scripts/generate_my_projects.py b/dart/tools/compiler_scripts/generate_my_projects.py
similarity index 69%
rename from dart/compiler/scripts/generate_my_projects.py
rename to dart/tools/compiler_scripts/generate_my_projects.py
index ff5800bbd54b865308c2285808f1d204fd42223e..c09b51487378361a9e2e84c2e137ba03cd2a0547 100755
--- a/dart/compiler/scripts/generate_my_projects.py
+++ b/dart/tools/compiler_scripts/generate_my_projects.py
@@ -11,26 +11,16 @@ def Main():
def normjoin(*args):
return os.path.normpath(os.path.join(*args))
- compiler = normjoin(sys.argv[0], os.pardir, os.pardir)
- editor = normjoin(compiler, os.pardir, 'editor')
+ dart_dir = normjoin(__file__, '..', '..', '..')
+ compiler_scripts = normjoin(dart_dir, 'tools', 'compiler_scripts')
+ editor = normjoin(dart_dir, 'editor')
locations = {
- 'compiler': compiler,
+ 'compiler_scripts': compiler_scripts,
'editor': editor,
}
generate_source_list_calls = [
- # The paths are relative to dart/compiler/
- {
- "name" : "java",
- "output" : "%(compiler)s/sources" % locations,
- "path" : "java",
- },
- {
- "name" : "javatests",
- "output" : "%(compiler)s/test_sources" % locations,
- "path" : "javatests",
- },
# The paths are relative to dart/editor/
{
"name" : "plugin_engine_java",
@@ -45,7 +35,7 @@ def Main():
]
for call_options in generate_source_list_calls:
- command = ("python %(compiler)s/generate_source_list.py " % locations +
+ command = ("python %(compiler_scripts)s/generate_source_list.py " % locations +
ricow1 2013/08/02 07:30:33 long line
"%(name)s %(output)s %(path)s" % call_options)
exit_code = os.system(command)
if exit_code:
« no previous file with comments | « dart/tools/compiler_scripts/dart_analyzer.sh ('k') | dart/tools/compiler_scripts/generate_source_list.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698