Skip to content

Commit

Permalink
Path changes for tests and install
Browse files Browse the repository at this point in the history
  • Loading branch information
moneal committed Dec 14, 2011
1 parent aa5a9ec commit 7193584
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
6 changes: 3 additions & 3 deletions Makefile
@@ -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
Expand All @@ -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)/
Expand Down
2 changes: 1 addition & 1 deletion lib/index.js
Expand Up @@ -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 changes: 2 additions & 3 deletions test/index.js
@@ -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( '' );
Expand All @@ -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( '' );
Expand Down

0 comments on commit 7193584

Please sign in to comment.