Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Finalized installation in makefile

  • Loading branch information...
commit 2b28639876a9dad825a3e0cb7e1fa1bbea8653dc 1 parent 54a656e
@tbranyen tbranyen authored
View
21 Makefile
@@ -4,21 +4,32 @@ NODEBLD = node-waf
BASE = .
LIBPATH = /usr/local/lib:$(BASE)/vendor
+NODE_LIB_PATH = ~/.node_libraries
+INSTALL_PATH = $(NODE_LIB_PATH)/nodegit2
-all: buildbindings lint
+all: buildbindings
buildbindings:
$(NODEBLD) build
install:
- $(NODEBLD) install
+ mkdir -p $(INSTALL_PATH)
+ mkdir -p $(INSTALL_PATH)/build/default
+ mkdir -p $(INSTALL_PATH)/lib
+
+ cp -f $(BASE)/build/default/nodegit2.node $(INSTALL_PATH)/build/default/nodegit2.node
+ cp -f $(BASE)/lib/* $(INSTALL_PATH)/lib/
+ cp -f $(BASE)/package.json $(INSTALL_PATH)/
+
+uninstall:
+ rm -rf $(INSTALL_PATH)
clean:
- rm -rf ./build
- rm -rf ./vendor/libgit2/build
+ rm -rf $(BASE)/build
+ rm -rf $(BASE)/vendor/libgit2/build
unittest:
$(NODEJS) $(BASE)/test/index.js test
lint:
- node ./util/hint-check.js
+ $(NODEJS) $(BASE)/util/hint-check.js
View
3  README.md
@@ -19,12 +19,13 @@ To run `nodegit2` you need `Node.js` and to run unit tests you will need to have
### Mac OS X/Linux/Unix ###
#### Install `nodegit2` by cloning source from __GitHub__ and running the `configure`, `make`, and `make install` commands: ####
+ \*Note: `nodegit2` assumes your library path exists at ~/.node_libraries.\*
[tim@thinkpad Projects]$ git clone git://github.com/tbranyen/nodegit2.git
[tim@thinkpad Projects]$ cd nodegit2
[tim@thinkpad nodegit2]$ ./configure
[tim@thinkpad nodegit2]$ make
- [tim@thinkpad nodegit2]$ sudo make install
+ [tim@thinkpad nodegit2]$ make install
### Windows via Cygwin ###
2  example/dummyrepo
@@ -1 +1 @@
-Subproject commit d29b7fecf71d0ef4887071ac18dc87f40c2fd4e1
+Subproject commit 2f6cbe055f1a6ca0a3ba524ba88a7806ba507a89
View
2  src/revwalk.cc
@@ -65,7 +65,7 @@ Handle<Value> RevWalk::New(const Arguments& args) {
}
Repo *repo = ObjectWrap::Unwrap<Repo>(args[0]->ToObject());
- int err = revwalk->New(repo);
+ revwalk->New(repo);
revwalk->Wrap(args.This());
View
1  test/convenience-repo.js
@@ -37,7 +37,6 @@ exports.constructor = function( test ){
// Test invalid repository
git.repo( '/etc/hosts', function( err, path ) {
- console.log( "TEST", err );
test.equals( 'The specified repository is invalid', err, 'Invalid repository error code' );
// Test valid repository
2  test/dummyrepo
@@ -1 +1 @@
-Subproject commit 978feacee2432e67051f2714ec7d28ad80e16908
+Subproject commit cb09e99e91d41705197e0fb60823fdc7df776691
View
4 test/index.js
@@ -40,9 +40,9 @@ reporter.run(
'raw-error.js',
// TODO:
- 'raw-revwalk.js'
+ //'raw-revwalk.js',
// Convenience API
- //'convenience-repo.js'
+ 'convenience-repo.js'
]
);
View
2  util/hint-check.js
@@ -1,6 +1,6 @@
var nodejshint = require( './nodejshint.js' ).test,
-files = [ 'lib/index.js', 'lib/ref.js', 'lib/repo.js', 'lib/error.js' ];
+files = [ 'lib/index.js', 'lib/ref.js', 'lib/repo.js', 'lib/error.js', 'lib/revwalk.js', 'lib/commit.js', 'lib/util.js', 'lib/oid.js', 'lib/sig.js' ];
nodejshint( files, function( failures ) {
if( !files.length ) {
Please sign in to comment.
Something went wrong with that request. Please try again.