@@ -4,8 +4,6 @@ var path = require("path");
44var fs = require ( "fs" ) ;
55
66var local = path . join . bind ( path , __dirname ) ;
7- var pkg = require ( local ( "../package" ) ) ;
8- var cp = require ( "child_process" ) ;
97
108var checkPrepared = require ( local ( "checkPrepared" ) ) ;
119var forNodeWebkit = require ( "for-node-webkit" ) ;
@@ -42,23 +40,26 @@ return forNodeWebkit(local(".."))
4240 console . info ( "[nodegit] Completed installation successfully." ) ;
4341 } ,
4442 function ( ) {
45- console . info ( "[nodegit] Failed to install prebuilt binary, building manually." ) ;
43+ console . info ( "[nodegit] Failed to install prebuilt binary, " +
44+ "building manually." ) ;
4645 return checkAndBuild ( ) ;
4746 }
4847 ) ;
4948 } ) ;
5049
5150
5251function checkAndBuild ( nwVersion ) {
53- console . info ( "[nodegit] Making sure dependencies are available and native code is generated" ) ;
52+ console . info ( "[nodegit] Making sure dependencies are available and native " +
53+ "code is generated" ) ;
5454
5555 return checkPrepared . checkAll ( )
5656 . then ( function ( allGood ) {
5757 if ( allGood ) {
5858 return Promise . resolve ( ) ;
5959 }
6060 else {
61- console . info ( "[nodegit] Something is missing, retrieving dependencies and regenerating code" ) ;
61+ console . info ( "[nodegit] Something is missing, retrieving " +
62+ "dependencies and regenerating code" ) ;
6263 return prepareForBuild ( ) ;
6364 }
6465 } )
@@ -84,11 +85,11 @@ function build(nwVersion) {
8485 var builder = nwVersion ? "nw-gyp" : "node-gyp" ;
8586 var target = ( nwVersion ? "--target=\"" + nwVersion + "\"" : "" ) ;
8687 var debug = ( process . env . BUILD_DEBUG ? " --debug" : "" ) ;
87- var cmd = path . resolve ( "." , "node_modules" , ".bin" , builder )
88- + " clean configure"
89- + debug
90- + target
91- + " build" ;
88+ var cmd = path . resolve ( "." , "node_modules" , ".bin" , builder ) +
89+ " clean configure" +
90+ debug +
91+ target +
92+ " build" ;
9293
9394 return exec ( cmd , opts )
9495 . then ( function ( ) {
0 commit comments