mirror of
https://github.com/electron/node-gyp.git
synced 2025-09-15 21:53:38 +02:00
27 lines
479 B
JavaScript
Executable file
27 lines
479 B
JavaScript
Executable file
#!/usr/bin/env node
|
|
|
|
/**
|
|
* Set the title.
|
|
*/
|
|
|
|
process.title = 'node-gyp'
|
|
|
|
/**
|
|
* Module dependencies.
|
|
*/
|
|
|
|
var gyp = require('../lib/node-gyp')
|
|
|
|
/**
|
|
* Process and execute the selected command.
|
|
*/
|
|
|
|
var prog = gyp()
|
|
prog.run(process.argv, function (err) {
|
|
if (err) throw err
|
|
})
|
|
prog.on('spawn', function (command, args, proc) {
|
|
//console.error('spawn', command, args)
|
|
proc.stdout.pipe(process.stdout, { end: false })
|
|
proc.stderr.pipe(process.stderr, { end: false })
|
|
})
|