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

Unified Diff: pylib/gyp/generator/scons.py

Issue 113966: Preserve symlinks with the gyp "copies" command. (Closed) Base URL: http://gyp.googlecode.com/svn/trunk/
Patch Set: Created 11 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pylib/gyp/generator/scons.py
===================================================================
--- pylib/gyp/generator/scons.py (revision 498)
+++ pylib/gyp/generator/scons.py (working copy)
@@ -394,7 +394,10 @@
for copy in copies:
destdir = copy['destination']
files = copy['files']
- fmt = '\n_outputs = env.Command(%s,\n %s\n, \'cp $SOURCE $TARGET\')\n'
+ opts = ''
+ # TODO(mmoss) Maybe make the "-d" configurable? How would a
+ # "no-dereference" copies option work in other generators?
+ fmt = '\n_outputs = env.Command(%s,\n %s\n, \'cp -d $SOURCE $TARGET\')\n'
for f in copy['files']:
dest = os.path.join(destdir, os.path.split(f)[1])
fp.write(fmt % (repr(dest), repr(f)))
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698