File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11NODE_JS = $(if $(shell test -f /usr/bin/nodejs && echo "true") ,nodejs,node)
22NODE_BLD = node-waf
3- NODE_LIB_PATH = ~/.node_libraries
3+ NODE_LIB_PATH = ~/.node_modules
44
55BASE = .
66INSTALL_PATH = $(NODE_LIB_PATH ) /nodegit
@@ -22,11 +22,11 @@ debug:
2222
2323install :
2424 @@mkdir -p $(INSTALL_PATH )
25- @@mkdir -p $(INSTALL_PATH ) /build/default
25+ @@mkdir -p $(INSTALL_PATH ) /build/Release
2626 @@mkdir -p $(INSTALL_PATH ) /lib
2727 @@mkdir -p $(INSTALL_PATH ) /vendor
2828
29- @@cp -f $(BASE)/build/Release/nodegit.node $(INSTALL_PATH)/build/default /nodegit.node
29+ @@cp -f $(BASE)/build/Release/nodegit.node $(INSTALL_PATH)/build/Release /nodegit.node
3030 @@cp -f $(BASE)/lib/* $(INSTALL_PATH)/lib/
3131 @@cp -rf $(BASE)/vendor/* $(INSTALL_PATH)/vendor/
3232 @@cp -f $(BASE)/package.json $(INSTALL_PATH)/
Original file line number Diff line number Diff line change @@ -24,6 +24,6 @@ exports.tree = require("./tree.js").tree;
2424exports . entry = require ( "./tree_entry.js" ) . entry ;
2525
2626// Assign raw api to module
27- exports . raw = require ( "../build/default /nodegit" ) ;
27+ exports . raw = require ( "../build/Release /nodegit" ) ;
2828// Set version
2929exports . version = "0.0.6" ;
Original file line number Diff line number Diff line change 1- require . paths . unshift ( '../vendor' ) ;
21
32try {
43 var reporter = require ( '../vendor/nodeunit' ) . reporters [ 'default' ] ;
54}
65catch ( e ) {
7- var sys = require ( 'sys ' ) ;
6+ var sys = require ( 'util ' ) ;
87 sys . puts ( 'Cannot find nodeunit module.' ) ;
98 sys . puts ( 'You can download submodules for this project by doing:' ) ;
109 sys . puts ( '' ) ;
1716 var rimraf = require ( '../vendor/rimraf' ) ;
1817}
1918catch ( e ) {
20- var sys = require ( 'sys ' ) ;
19+ var sys = require ( 'util ' ) ;
2120 sys . puts ( 'Cannot find rimraf module.' ) ;
2221 sys . puts ( 'You can download submodules for this project by doing:' ) ;
2322 sys . puts ( '' ) ;
You can’t perform that action at this time.
0 commit comments