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

Unified Diff: tools/make_links.py

Issue 2023703002: Beginning work on GN build (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Really add //build. Add dart_bootstrap rule. Created 4 years, 7 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 | « tools/gypi_to_gn.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/make_links.py
diff --git a/tools/make_links.py b/tools/make_links.py
index 157008ace7b4944644e8e4064747afafdaf01602..f49c0ed1a36f2a8a20b2bc8c03bd95a9bffc6af6 100644
--- a/tools/make_links.py
+++ b/tools/make_links.py
@@ -42,24 +42,15 @@ def get_options():
def make_link(source, target, orig_source):
if os.path.islink(target):
- print 'Removing %s' % target
- sys.stdout.flush()
os.unlink(target)
if os.path.isdir(target):
- print 'Removing %s' % target
- sys.stdout.flush()
os.rmdir(target)
if os.path.isfile(orig_source):
- print 'Copying file from %s to %s' % (orig_source, target)
- sys.stdout.flush()
shutil.copyfile(orig_source, target)
return 0
else:
- print 'Creating link from %s to %s' % (source, target)
- sys.stdout.flush()
-
if utils.GuessOS() == 'win32':
return subprocess.call(['mklink', '/j', target, source], shell=True)
else:
@@ -90,7 +81,7 @@ def main(argv):
os.remove(full_link)
else:
os.makedirs(target)
- linked_names = {};
+ linked_names = {};
for source in args[1:]:
# Assume the source directory is named ".../NAME/lib".
split = source.split(':')
« no previous file with comments | « tools/gypi_to_gn.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698