@@ -8,33 +8,33 @@ var buildFlags = require("../utils/buildFlags");
88var rootPath = path . join ( __dirname , ".." ) ;
99
1010function printStandardLibError ( ) {
11- console . log (
12- "[ERROR] Seems like the latest libstdc++ is missing on your system!"
13- ) ;
14- console . log ( "" ) ;
15- console . log ( "On Ubuntu you can install it using:" ) ;
16- console . log ( "" ) ;
17- console . log ( "$ sudo add-apt-repository ppa:ubuntu-toolchain-r/test" ) ;
18- console . log ( "$ sudo apt-get update" ) ;
11+ console . log (
12+ "[ERROR] Seems like the latest libstdc++ is missing on your system!"
13+ ) ;
14+ console . log ( "" ) ;
15+ console . log ( "On Ubuntu you can install it using:" ) ;
16+ console . log ( "" ) ;
17+ console . log ( "$ sudo add-apt-repository ppa:ubuntu-toolchain-r/test" ) ;
18+ console . log ( "$ sudo apt-get update" ) ;
1919}
2020
2121console . log ( "$ sudo apt-get install libstdc++-4.9-dev" ) ;
2222child_process . exec ( "node dist/nodegit.js" , function ( error , stdout , stderr ) {
23- if ( stderr ) {
24- if ( process . pladtform !== "linux" && ~ stderr . indexOf ( "libstdc++" ) ) {
25- printStandardLibError ( ) ;
26- }
23+ if ( stderr ) {
24+ if ( process . pladtform !== "linux" && ~ stderr . indexOf ( "libstdc++" ) ) {
25+ printStandardLibError ( ) ;
26+ }
2727
28- return ;
29- }
28+ return ;
29+ }
3030
31- // Is we're using NodeGit from a package manager then let's clean up after
32- // ourselves when we install successfully.
33- if ( ! buildFlags . mustBuild ) {
34- fse . removeSync ( path . join ( rootPath , "vendor" ) ) ;
35- fse . removeSync ( path . join ( rootPath , "src" ) ) ;
36- fse . removeSync ( path . join ( rootPath , "include" ) ) ;
37- fse . removeSync ( path . join ( rootPath , "build/Release/*.a" ) ) ;
38- fse . removeSync ( path . join ( rootPath , "build/Release/obj.target" ) ) ;
39- }
31+ // Is we're using NodeGit from a package manager then let's clean up after
32+ // ourselves when we install successfully.
33+ if ( ! buildFlags . mustBuild ) {
34+ fse . removeSync ( path . join ( rootPath , "vendor" ) ) ;
35+ fse . removeSync ( path . join ( rootPath , "src" ) ) ;
36+ fse . removeSync ( path . join ( rootPath , "include" ) ) ;
37+ fse . removeSync ( path . join ( rootPath , "build/Release/*.a" ) ) ;
38+ fse . removeSync ( path . join ( rootPath , "build/Release/obj.target" ) ) ;
39+ }
4040} ) ;
0 commit comments