Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBert Belder <bertbelder@gmail.com>2010-11-25 04:14:53 +0300
committerBert Belder <bertbelder@gmail.com>2010-12-21 01:51:09 +0300
commit9f9332963afeb21914812c25dca49973a99f377c (patch)
tree6c536d4037e42b32accaaeabdca911a3ce41d21a /wscript
parent9a9edb0e8e6120b3b8a3868d0c44577111dd1857 (diff)
wscript: use "node.exe" and avoid symlinks on windows
Diffstat (limited to 'wscript')
-rw-r--r--wscript22
1 files changed, 16 insertions, 6 deletions
diff --git a/wscript b/wscript
index 5d991c6f7ec..6390bf638d1 100644
--- a/wscript
+++ b/wscript
@@ -720,10 +720,20 @@ def shutdown():
print "WARNING: Platform not fully supported. Using src/platform_none.cc"
elif not Options.commands['clean']:
- if os.path.exists('build/default/node') and not os.path.exists('node'):
- os.symlink('build/default/node', 'node')
- if os.path.exists('build/debug/node_g') and not os.path.exists('node_g'):
- os.symlink('build/debug/node_g', 'node_g')
+ if sys.platform.startswith("win32"):
+ if os.path.exists('build/default/node.exe') and not os.path.exists('node.exe'):
+ os.system('cp build/default/node.exe .')
+ if os.path.exists('build/debug/node_g.exe') and not os.path.exists('node_g.exe'):
+ os.system('cp build/debug/node_g.exe .')
+ else:
+ if os.path.exists('build/default/node') and not os.path.exists('node'):
+ os.symlink('build/default/node', 'node')
+ if os.path.exists('build/debug/node_g') and not os.path.exists('node_g'):
+ os.symlink('build/debug/node_g', 'node_g')
else:
- if os.path.exists('node'): os.unlink('node')
- if os.path.exists('node_g'): os.unlink('node_g')
+ if sys.platform.startswith("win32"):
+ if os.path.exists('node.exe'): os.unlink('node.exe')
+ if os.path.exists('node_g.exe'): os.unlink('node_g.exe')
+ else:
+ if os.path.exists('node'): os.unlink('node')
+ if os.path.exists('node_g'): os.unlink('node_g')