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

Unified Diff: tools/create_sdk.py

Issue 10937019: First pass at getting git and tar.gz working on Windows. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix merge bug. Created 8 years, 3 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 | « no previous file | utils/pub/io.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/create_sdk.py
diff --git a/tools/create_sdk.py b/tools/create_sdk.py
index 6c8de9bc22df559765489eeb038b7be798f6c4fc..57d6b940383284e7adc41c943639af7dc1904cba 100755
--- a/tools/create_sdk.py
+++ b/tools/create_sdk.py
@@ -299,6 +299,18 @@ def Main(argv):
copytree(join(HOME, 'utils', 'pub'), join(UTIL, 'pub'),
ignore=ignore_patterns('.svn', 'sdk'))
+ # Copy in 7zip for Windows.
+ if utils.GuessOS() == 'win32':
+ copytree(join(HOME, 'third_party', '7zip'),
+ join(join(UTIL, 'pub'), '7zip'))
+
+ ReplaceInFiles([
+ join(UTIL, 'pub', 'io.dart'),
+ ], [
+ ("var pathTo7zip = '../../third_party/7zip/7za.exe';",
+ "var pathTo7zip = '7zip/7za.exe';"),
+ ])
+
revision = utils.GetSVNRevision()
# Copy dart2js.
« no previous file with comments | « no previous file | utils/pub/io.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698