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

Side by Side Diff: utils/tip/copy_libs.py

Issue 9789004: Move copy_dart.py from client to tools (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 8 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
« no previous file with comments | « tools/copy_dart.py ('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/local/evn python 1 #!/usr/local/evn python
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 # TODO(jimhug): THIS IS CURRENTLY BROKEN - NEEDS FIX BEFORE EXTENSIONS WORK! 6 # TODO(jimhug): THIS IS CURRENTLY BROKEN - NEEDS FIX BEFORE EXTENSIONS WORK!
7 7
8 # A script that copies dart/frog/lib under dart/frog/tip/lib/. This script 8 # A script that copies dart/frog/lib under dart/frog/tip/lib/. This script
9 # internally uses copy_dart to resolve relative paths used in the libraries and 9 # internally uses copy_dart to resolve relative paths used in the libraries and
10 # merge source files together. 10 # merge source files together.
(...skipping 26 matching lines...) Expand all
37 if re_library.match(line): 37 if re_library.match(line):
38 libs.append(relpath) 38 libs.append(relpath)
39 break 39 break
40 fileinput.close() 40 fileinput.close()
41 return libs 41 return libs
42 42
43 def main(): 43 def main():
44 os.chdir(LIB_PATH) 44 os.chdir(LIB_PATH)
45 libs = find_libraries(LIB_PATH) 45 libs = find_libraries(LIB_PATH)
46 return subprocess.call([sys.executable, 46 return subprocess.call([sys.executable,
47 '../../client/tools/copy_dart.py', os.path.join(TIP_PATH, 'lib')] + libs) 47 '../../tools/copy_dart.py', os.path.join(TIP_PATH, 'lib')] + libs)
48 48
49 if __name__ == '__main__': 49 if __name__ == '__main__':
50 sys.exit(main()) 50 sys.exit(main())
OLDNEW
« no previous file with comments | « tools/copy_dart.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698