Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Path changes for tests and install

  • Loading branch information...
commit 7193584332bb14d3adf6db7272943ac72907b4f7 1 parent aa5a9ec
Morgan O'Neal moneal authored
Showing with 6 additions and 7 deletions.
  1. +3 −3 Makefile
  2. +1 −1  lib/index.js
  3. +2 −3 test/index.js
6 Makefile
View
@@ -1,6 +1,6 @@
NODE_JS = $(if $(shell test -f /usr/bin/nodejs && echo "true"),nodejs,node)
NODE_BLD = node-waf
-NODE_LIB_PATH = ~/.node_libraries
+NODE_LIB_PATH = ~/.node_modules
BASE = .
INSTALL_PATH = $(NODE_LIB_PATH)/nodegit
@@ -22,11 +22,11 @@ debug:
install:
@@mkdir -p $(INSTALL_PATH)
- @@mkdir -p $(INSTALL_PATH)/build/default
+ @@mkdir -p $(INSTALL_PATH)/build/Release
@@mkdir -p $(INSTALL_PATH)/lib
@@mkdir -p $(INSTALL_PATH)/vendor
- @@cp -f $(BASE)/build/Release/nodegit.node $(INSTALL_PATH)/build/default/nodegit.node
+ @@cp -f $(BASE)/build/Release/nodegit.node $(INSTALL_PATH)/build/Release/nodegit.node
@@cp -f $(BASE)/lib/* $(INSTALL_PATH)/lib/
@@cp -rf $(BASE)/vendor/* $(INSTALL_PATH)/vendor/
@@cp -f $(BASE)/package.json $(INSTALL_PATH)/
2  lib/index.js
View
@@ -24,6 +24,6 @@ exports.tree = require("./tree.js").tree;
exports.entry = require("./tree_entry.js").entry;
// Assign raw api to module
-exports.raw = require("../build/default/nodegit");
+exports.raw = require("../build/Release/nodegit");
// Set version
exports.version = "0.0.6";
5 test/index.js
View
@@ -1,10 +1,9 @@
-require.paths.unshift( '../vendor' );
try {
var reporter = require( '../vendor/nodeunit' ).reporters['default'];
}
catch( e ) {
- var sys = require( 'sys' );
+ var sys = require( 'util' );
sys.puts( 'Cannot find nodeunit module.' );
sys.puts( 'You can download submodules for this project by doing:' );
sys.puts( '' );
@@ -17,7 +16,7 @@ try {
var rimraf = require( '../vendor/rimraf' );
}
catch(e) {
- var sys = require( 'sys' );
+ var sys = require( 'util' );
sys.puts( 'Cannot find rimraf module.' );
sys.puts( 'You can download submodules for this project by doing:' );
sys.puts( '' );
Please sign in to comment.
Something went wrong with that request. Please try again.