chiark / gitweb /
Merge pull request #181 from its-pointless/master
[termux-packages] / packages / nodejs / deps-npm-lib-build.js.patch
1 diff -u -r ../node-v5.1.0/deps/npm/lib/build.js ./deps/npm/lib/build.js
2 --- ../node-v5.1.0/deps/npm/lib/build.js        2015-11-17 15:55:27.000000000 -0500
3 +++ ./deps/npm/lib/build.js     2015-11-17 19:01:33.061204729 -0500
4 @@ -223,6 +223,8 @@
5  
6  function linkBin (from, to, gently, cb) {
7    if (process.platform !== 'win32') {
8 +    // Fix shebang paths in binary scripts:
9 +    require('child_process').spawn('termux-fix-shebang', [from])
10      return linkIfExists(from, to, gently, cb)
11    } else {
12      return cmdShimIfExists(from, to, cb)