Add symlinks in root directory to executables after build.

pull/5370/head
Ryan Dahl 2009-10-27 18:11:07 +01:00
parent 2b743aa5bb
commit 132d685796
1 changed files with 13 additions and 0 deletions

13
wscript
View File

@ -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')