diff --git a/wscript b/wscript index 1b204e6c0f3..2a8cde57ea8 100644 --- a/wscript +++ b/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')