mirror of https://github.com/nodejs/node.git
Add symlinks in root directory to executables after build.
parent
2b743aa5bb
commit
132d685796
13
wscript
13
wscript
|
@ -394,3 +394,16 @@ def build(bld):
|
|||
bld.install_files('${PREFIX}/lib/node/wafadmin/Tools', 'tools/wafadmin/Tools/*.py')
|
||||
|
||||
bld.install_files('${PREFIX}/lib/node/libraries/', 'lib/*.js')
|
||||
|
||||
def shutdown():
|
||||
Options.options.debug
|
||||
# HACK to get binding.node out of build directory.
|
||||
# better way to do this?
|
||||
if 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')
|
||||
else:
|
||||
if os.path.exists('node'): os.unlink('node')
|
||||
if os.path.exists('node_g'): os.unlink('node_g')
|
||||
|
|
Loading…
Reference in New Issue