Skip to content

Commit 7193584

Browse files
committed
Path changes for tests and install
1 parent aa5a9ec commit 7193584

3 files changed

Lines changed: 6 additions & 7 deletions

File tree

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
NODE_JS = $(if $(shell test -f /usr/bin/nodejs && echo "true"),nodejs,node)
22
NODE_BLD = node-waf
3-
NODE_LIB_PATH = ~/.node_libraries
3+
NODE_LIB_PATH = ~/.node_modules
44

55
BASE = .
66
INSTALL_PATH = $(NODE_LIB_PATH)/nodegit
@@ -22,11 +22,11 @@ debug:
2222

2323
install:
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)/

lib/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,6 @@ exports.tree = require("./tree.js").tree;
2424
exports.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
2929
exports.version = "0.0.6";

test/index.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
require.paths.unshift( '../vendor' );
21

32
try {
43
var reporter = require( '../vendor/nodeunit' ).reporters['default'];
54
}
65
catch( 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( '' );
@@ -17,7 +16,7 @@ try {
1716
var rimraf = require( '../vendor/rimraf' );
1817
}
1918
catch(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( '' );

0 commit comments

Comments
 (0)