|
@ -969,6 +969,20 @@ def build(bld): |
|
|
bld.install_files('${PREFIX}/bin/', 'tools/node-waf', chmod=0755) |
|
|
bld.install_files('${PREFIX}/bin/', 'tools/node-waf', chmod=0755) |
|
|
bld.install_files('${LIBDIR}/node/wafadmin', 'tools/wafadmin/*.py') |
|
|
bld.install_files('${LIBDIR}/node/wafadmin', 'tools/wafadmin/*.py') |
|
|
bld.install_files('${LIBDIR}/node/wafadmin/Tools', 'tools/wafadmin/Tools/*.py') |
|
|
bld.install_files('${LIBDIR}/node/wafadmin/Tools', 'tools/wafadmin/Tools/*.py') |
|
|
|
|
|
install_npm(bld) |
|
|
|
|
|
|
|
|
|
|
|
def install_npm(bld): |
|
|
|
|
|
start_dir = bld.path.find_dir('deps/npm') |
|
|
|
|
|
# The chmod=-1 is a Node hack. We changed WAF so that when chmod was set to |
|
|
|
|
|
# -1 that the same permission in this tree are used. Necessary to get |
|
|
|
|
|
# npm-cli.js to be executable without having to list every file in NPM. |
|
|
|
|
|
bld.install_files('${LIBDIR}/node_modules/npm', |
|
|
|
|
|
start_dir.ant_glob('**/*'), |
|
|
|
|
|
cwd=start_dir, |
|
|
|
|
|
relative_trick=True, |
|
|
|
|
|
chmod=0) |
|
|
|
|
|
bld.symlink_as('${PREFIX}/bin/npm', |
|
|
|
|
|
'../lib/node_modules/npm/bin/npm-cli.js') |
|
|
|
|
|
|
|
|
def shutdown(): |
|
|
def shutdown(): |
|
|
Options.options.debug |
|
|
Options.options.debug |
|
|