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

Side by Side Diff: copy_apprtc.py

Issue 316013004: Use Chromium Git mirror for AppRTC (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/third_party/webrtc/webrtc.DEPS/
Patch Set: Created 6 years, 6 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 | « DEPS ('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/python 1 #!/usr/bin/python
2 # Copyright 2013 The Chromium Authors. All rights reserved. 2 # Copyright 2013 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 """Moves Apprtc to the out/ directory, where the browser test can find it. 6 """Moves Apprtc to the out/ directory, where the browser test can find it.
7 7
8 This copy will resolve symlinks on all platforms, which is useful for Apprtc 8 This copy will resolve symlinks on all platforms, which is useful for Apprtc
9 since it uses symlinks for its common javascript files (and Windows does not 9 since it uses symlinks for its common javascript files (and Windows does not
10 understand those symlinks). 10 understand those symlinks).
11 """ 11 """
12 12
13 import shutil 13 import shutil
14 14
15 15
16 if __name__ == '__main__': 16 if __name__ == '__main__':
17 web_samples_dir = 'webrtc-samples/samples/web'
17 shutil.rmtree('src/out/apprtc', ignore_errors=True) 18 shutil.rmtree('src/out/apprtc', ignore_errors=True)
18 shutil.copytree('src/third_party/webrtc_apprtc/apprtc', 19 shutil.copytree(web_samples_dir + '/content/apprtc',
19 'src/out/apprtc', ignore=shutil.ignore_patterns('.svn')) 20 'src/out/apprtc', ignore=shutil.ignore_patterns('.svn'))
20 shutil.copyfile('src/third_party/webrtc_apprtc/base/adapter.js', 21 shutil.copyfile(web_samples_dir + '/js/adapter.js',
21 'src/out/apprtc/js/adapter.js') 22 'src/out/apprtc/js/adapter.js')
OLDNEW
« no previous file with comments | « DEPS ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698