Skip to content

Commit 7e23e70

Browse files
committed
Add bypass symlinks so dependency can be used directly from GitHub
1 parent dcc9daf commit 7e23e70

File tree

25 files changed

+691
-6
lines changed

25 files changed

+691
-6
lines changed

.gitignore

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,4 @@ prebuilds/
77
lib/
88
libexec/
99
share/
10-
*-nodeos-linux-musl/
11-
12-
bin/
10+
*-nodeos-linux-musl*

bin/addr2line

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
#!/usr/bin/env node
2+
3+
// Simply move to the next command available on the `$PATH`. This is needed
4+
// during `npm` install process
5+
6+
7+
const path = require('path')
8+
const spawn = require('child_process').spawn
9+
10+
11+
var command = process.argv[1]
12+
var argv = process.argv.slice(2)
13+
14+
// Remove us from the `$PATH` and try to find the system one again
15+
var PATH = process.env.PATH.split(':')
16+
var index = PATH.indexOf(path.dirname(command))
17+
if(index >= 0)
18+
process.env.PATH = PATH.slice(index+1).join(':')
19+
20+
21+
spawn(path.basename(command), argv, {stdio: 'inherit'})
22+
.on('exit', function(code, signal)
23+
{
24+
process.exit(code || signal)
25+
})
26+
.on('error', function(error)
27+
{
28+
if(error.code === 'ENOENT') return process.exit(127)
29+
30+
throw error
31+
})

bin/ar

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
#!/usr/bin/env node
2+
3+
// Simply move to the next command available on the `$PATH`. This is needed
4+
// during `npm` install process
5+
6+
7+
const path = require('path')
8+
const spawn = require('child_process').spawn
9+
10+
11+
var command = process.argv[1]
12+
var argv = process.argv.slice(2)
13+
14+
// Remove us from the `$PATH` and try to find the system one again
15+
var PATH = process.env.PATH.split(':')
16+
var index = PATH.indexOf(path.dirname(command))
17+
if(index >= 0)
18+
process.env.PATH = PATH.slice(index+1).join(':')
19+
20+
21+
spawn(path.basename(command), argv, {stdio: 'inherit'})
22+
.on('exit', function(code, signal)
23+
{
24+
process.exit(code || signal)
25+
})
26+
.on('error', function(error)
27+
{
28+
if(error.code === 'ENOENT') return process.exit(127)
29+
30+
throw error
31+
})

bin/as

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
#!/usr/bin/env node
2+
3+
// Simply move to the next command available on the `$PATH`. This is needed
4+
// during `npm` install process
5+
6+
7+
const path = require('path')
8+
const spawn = require('child_process').spawn
9+
10+
11+
var command = process.argv[1]
12+
var argv = process.argv.slice(2)
13+
14+
// Remove us from the `$PATH` and try to find the system one again
15+
var PATH = process.env.PATH.split(':')
16+
var index = PATH.indexOf(path.dirname(command))
17+
if(index >= 0)
18+
process.env.PATH = PATH.slice(index+1).join(':')
19+
20+
21+
spawn(path.basename(command), argv, {stdio: 'inherit'})
22+
.on('exit', function(code, signal)
23+
{
24+
process.exit(code || signal)
25+
})
26+
.on('error', function(error)
27+
{
28+
if(error.code === 'ENOENT') return process.exit(127)
29+
30+
throw error
31+
})

bin/c++

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
#!/usr/bin/env node
2+
3+
// Simply move to the next command available on the `$PATH`. This is needed
4+
// during `npm` install process
5+
6+
7+
const path = require('path')
8+
const spawn = require('child_process').spawn
9+
10+
11+
var command = process.argv[1]
12+
var argv = process.argv.slice(2)
13+
14+
// Remove us from the `$PATH` and try to find the system one again
15+
var PATH = process.env.PATH.split(':')
16+
var index = PATH.indexOf(path.dirname(command))
17+
if(index >= 0)
18+
process.env.PATH = PATH.slice(index+1).join(':')
19+
20+
21+
spawn(path.basename(command), argv, {stdio: 'inherit'})
22+
.on('exit', function(code, signal)
23+
{
24+
process.exit(code || signal)
25+
})
26+
.on('error', function(error)
27+
{
28+
if(error.code === 'ENOENT') return process.exit(127)
29+
30+
throw error
31+
})

bin/c++filt

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
#!/usr/bin/env node
2+
3+
// Simply move to the next command available on the `$PATH`. This is needed
4+
// during `npm` install process
5+
6+
7+
const path = require('path')
8+
const spawn = require('child_process').spawn
9+
10+
11+
var command = process.argv[1]
12+
var argv = process.argv.slice(2)
13+
14+
// Remove us from the `$PATH` and try to find the system one again
15+
var PATH = process.env.PATH.split(':')
16+
var index = PATH.indexOf(path.dirname(command))
17+
if(index >= 0)
18+
process.env.PATH = PATH.slice(index+1).join(':')
19+
20+
21+
spawn(path.basename(command), argv, {stdio: 'inherit'})
22+
.on('exit', function(code, signal)
23+
{
24+
process.exit(code || signal)
25+
})
26+
.on('error', function(error)
27+
{
28+
if(error.code === 'ENOENT') return process.exit(127)
29+
30+
throw error
31+
})

bin/cpp

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
#!/usr/bin/env node
2+
3+
// Simply move to the next command available on the `$PATH`. This is needed
4+
// during `npm` install process
5+
6+
7+
const path = require('path')
8+
const spawn = require('child_process').spawn
9+
10+
11+
var command = process.argv[1]
12+
var argv = process.argv.slice(2)
13+
14+
// Remove us from the `$PATH` and try to find the system one again
15+
var PATH = process.env.PATH.split(':')
16+
var index = PATH.indexOf(path.dirname(command))
17+
if(index >= 0)
18+
process.env.PATH = PATH.slice(index+1).join(':')
19+
20+
21+
spawn(path.basename(command), argv, {stdio: 'inherit'})
22+
.on('exit', function(code, signal)
23+
{
24+
process.exit(code || signal)
25+
})
26+
.on('error', function(error)
27+
{
28+
if(error.code === 'ENOENT') return process.exit(127)
29+
30+
throw error
31+
})

bin/elfedit

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
#!/usr/bin/env node
2+
3+
// Simply move to the next command available on the `$PATH`. This is needed
4+
// during `npm` install process
5+
6+
7+
const path = require('path')
8+
const spawn = require('child_process').spawn
9+
10+
11+
var command = process.argv[1]
12+
var argv = process.argv.slice(2)
13+
14+
// Remove us from the `$PATH` and try to find the system one again
15+
var PATH = process.env.PATH.split(':')
16+
var index = PATH.indexOf(path.dirname(command))
17+
if(index >= 0)
18+
process.env.PATH = PATH.slice(index+1).join(':')
19+
20+
21+
spawn(path.basename(command), argv, {stdio: 'inherit'})
22+
.on('exit', function(code, signal)
23+
{
24+
process.exit(code || signal)
25+
})
26+
.on('error', function(error)
27+
{
28+
if(error.code === 'ENOENT') return process.exit(127)
29+
30+
throw error
31+
})

bin/g++

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
#!/usr/bin/env node
2+
3+
// Simply move to the next command available on the `$PATH`. This is needed
4+
// during `npm` install process
5+
6+
7+
const path = require('path')
8+
const spawn = require('child_process').spawn
9+
10+
11+
var command = process.argv[1]
12+
var argv = process.argv.slice(2)
13+
14+
// Remove us from the `$PATH` and try to find the system one again
15+
var PATH = process.env.PATH.split(':')
16+
var index = PATH.indexOf(path.dirname(command))
17+
if(index >= 0)
18+
process.env.PATH = PATH.slice(index+1).join(':')
19+
20+
21+
spawn(path.basename(command), argv, {stdio: 'inherit'})
22+
.on('exit', function(code, signal)
23+
{
24+
process.exit(code || signal)
25+
})
26+
.on('error', function(error)
27+
{
28+
if(error.code === 'ENOENT') return process.exit(127)
29+
30+
throw error
31+
})

bin/gcc

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
#!/usr/bin/env node
2+
3+
// Simply move to the next command available on the `$PATH`. This is needed
4+
// during `npm` install process
5+
6+
7+
const path = require('path')
8+
const spawn = require('child_process').spawn
9+
10+
11+
var command = process.argv[1]
12+
var argv = process.argv.slice(2)
13+
14+
// Remove us from the `$PATH` and try to find the system one again
15+
var PATH = process.env.PATH.split(':')
16+
var index = PATH.indexOf(path.dirname(command))
17+
if(index >= 0)
18+
process.env.PATH = PATH.slice(index+1).join(':')
19+
20+
21+
spawn(path.basename(command), argv, {stdio: 'inherit'})
22+
.on('exit', function(code, signal)
23+
{
24+
process.exit(code || signal)
25+
})
26+
.on('error', function(error)
27+
{
28+
if(error.code === 'ENOENT') return process.exit(127)
29+
30+
throw error
31+
})

0 commit comments

Comments
 (0)