Permalink
Browse files

use env command to find the executable node file automatically

  • Loading branch information...
kuno Guido Tapia
kuno authored and Guido Tapia committed Apr 1, 2011
1 parent 168007d commit 9ae5123a50794df78f6e4e59160d16338b7903e6
View
@@ -107,7 +107,7 @@ if generated by nclosure.
`nclosure` supports testing using Closure's 'goog.testing.jsunit' test tools.
To set up a unit test simply create a test file like:
- #!/usr/local/bin/node
+ #!/usr/bin/env node
// You can now run the test just by executing this file
require('nclosure').nclosure();
View
@@ -1,4 +1,4 @@
-#!/usr/local/bin/node
+#!/usr/bin/env node
/**
* @fileoverview Utility to compile a specific JS project. To use the compiler:
View
@@ -1,4 +1,4 @@
-#!/usr/local/bin/node
+#!/usr/bin/env node
/**
* @fileoverview Utility to generate jsdoc style docs from your source code.
View
@@ -1,4 +1,4 @@
-#!/usr/local/bin/node
+#!/usr/bin/env node
/**
* @fileoverview This file runs fixjsstyle and gjslint on a directory
View
@@ -1,4 +1,4 @@
-#!/usr/local/bin/node
+#!/usr/bin/env node
/**
* @fileoverview This is a utility for running all test in a specified
View
@@ -1,4 +1,4 @@
-#!/usr/local/bin/node
+#!/usr/bin/env node
/**
* @fileoverview Utility class to run tests in their own process (isolation)
@@ -1,4 +1,4 @@
-#!/usr/local/bin/node
+#!/usr/bin/env node
/**
* @fileoverview This example will try to showcase some of the great features
@@ -1,4 +1,4 @@
-#!/usr/local/bin/node
+#!/usr/bin/env node
/**
* @fileoverview To get started with nclosure you will need to do the
@@ -1,4 +1,4 @@
-#!/usr/local/bin/node
+#!/usr/bin/env node
require('nclosure').nclosure();
@@ -1,4 +1,4 @@
-#!/usr/local/bin/node
+#!/usr/bin/env node
require('nclosure').nclosure();
@@ -1,4 +1,4 @@
-#!/usr/local/bin/node
+#!/usr/bin/env node
/**
View
@@ -1,4 +1,4 @@
-#!/usr/local/bin/node
+#!/usr/bin/env node
/**
View
@@ -1,4 +1,4 @@
-#!/usr/local/bin/node
+#!/usr/bin/env node
/**
* @fileoverview This is an inernal utiltiy used for development purposes only.
@@ -1,4 +1,4 @@
-#!/usr/local/bin/node
+#!/usr/bin/env node
require('nclosure').nclosure();
@@ -1,4 +1,4 @@
-#!/usr/local/bin/node
+#!/usr/bin/env node
var ng_ = require('nclosure').nclosure();
@@ -1,4 +1,4 @@
-#!/usr/local/bin/node
+#!/usr/bin/env node
var ng_ = require('nclosure').nclosure();
@@ -1,4 +1,4 @@
-#!/usr/local/bin/node
+#!/usr/bin/env node
/**
* @fileOverview This test is to try to get the async stuff working better.
@@ -1,4 +1,4 @@
-#!/usr/local/bin/node
+#!/usr/bin/env node
/**
* @private
View
@@ -1,4 +1,4 @@
-#!/usr/local/bin/node
+#!/usr/bin/env node
require('nclosure').nclosure();
@@ -1,4 +1,4 @@
-#!/usr/local/bin/node
+#!/usr/bin/env node
require('nclosure').nclosure();
@@ -1,4 +1,4 @@
-#!/usr/local/bin/node
+#!/usr/bin/env node
/**
* @private
@@ -1,4 +1,4 @@
-#!/usr/local/bin/node
+#!/usr/bin/env node
require('nclosure').nclosure();

0 comments on commit 9ae5123

Please sign in to comment.