Permalink
Browse files

updated nodegit version, cleaned up index file, and updated makefile

  • Loading branch information...
1 parent 753b37c commit f64c878b243b692b0c7cb47cbb215426ea3ffd29 @tbranyen tbranyen committed Sep 6, 2011
Showing with 26 additions and 35 deletions.
  1. +2 −0 Makefile
  2. +24 −35 lib/index.js
View
@@ -24,9 +24,11 @@ install:
@@mkdir -p $(INSTALL_PATH)
@@mkdir -p $(INSTALL_PATH)/build/default
@@mkdir -p $(INSTALL_PATH)/lib
+ @@mkdir -p $(INSTALL_PATH)/vendor
@@cp -f $(BASE)/build/default/nodegit.node $(INSTALL_PATH)/build/default/nodegit.node
@@cp -f $(BASE)/lib/* $(INSTALL_PATH)/lib/
+ @@cp -rf $(BASE)/vendor/* $(INSTALL_PATH)/vendor/
@@cp -f $(BASE)/package.json $(INSTALL_PATH)/
@@echo "Installed to $(INSTALL_PATH)"
View
@@ -1,40 +1,29 @@
-// System
-var os = require( 'os' );
-
-// Library
-var util = require( './util.js' ).util,
- blob = require( './blob.js' ).blob,
- repo = require( './repo.js' ).repo,
- error = require( './error.js' ).error,
- sig = require( './sig.js' ).sig,
- oid = require( './oid.js' ).oid,
- object = require( './object.js' ).object,
- ref = require( './ref.js' ).ref,
- revwalk = require( './revwalk.js' ).revwalk,
- commit = require( './commit.js' ).commit,
- tree = require( './tree.js' ).tree,
- entry = require( './tree_entry.js' ).entry;
+// Used to detect for Cygwin
+var os = require("os");
// Required for Windows/Cygwin support
-var root = [ __dirname, '/../vendor/libgit2/build/shared' ].join( '' ), path = process.env.PATH;
-if( ~os.type().indexOf( 'CYGWIN' ) && !~path.indexOf( root ) ) {
- process.env.PATH = root + ':' + path;
+var root = [ __dirname, "/../vendor/libgit2/build/shared" ].join(""),
+ path = process.env.PATH;
+
+if (~os.type().indexOf("CYGWIN") && !~path.indexOf(root)) {
+ process.env.PATH = root + ":" + path;
}
-// Assign raw api to module
-exports.raw = require( '../build/default/nodegit' );
+// Import libraries
+exports.util = require("./util.js").util;
+exports.blob = require("./blob.js").blob;
+exports.repo = require("./repo.js").repo;
+exports.error = require("./error.js").error;
+exports.sig = require("./sig.js").sig;
+exports.oid = require("./oid.js").oid;
+exports.object = require("./object.js").object;
+exports.ref = require("./ref.js").ref;
+exports.revwalk = require("./revwalk.js").revwalk;
+exports.commit = require("./commit.js").commit;
+exports.tree = require("./tree.js").tree;
+exports.entry = require("./tree_entry.js").entry;
-// Assign to module
-exports.blob = blob;
-exports.util = util;
-exports.repo = repo;
-exports.ref = ref;
-exports.oid = oid;
-exports.object = object;
-exports.sig = sig;
-exports.error = error;
-exports.revwalk = revwalk;
-exports.commit = commit;
-exports.tree = tree;
-exports.entry = entry;
-exports.version = '0.0.5';
+// Assign raw api to module
+exports.raw = require("../build/default/nodegit");
+// Set version
+exports.version = "0.0.6";

0 comments on commit f64c878

Please sign in to comment.