Browse Source

Add symlinks in root directory to executables after build.

v0.7.4-release
Ryan Dahl 15 years ago
parent
commit
132d685796
  1. 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…
Cancel
Save