Skip to content
Browse files

use env command to find the executable node file automatically

  • Loading branch information...
1 parent 168007d commit 9ae5123a50794df78f6e4e59160d16338b7903e6 kuno committed with Guido Tapia Apr 1, 2011
View
2 README.md
@@ -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
2 bin/nccompile.js
@@ -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
2 bin/ncdoc.js
@@ -1,4 +1,4 @@
-#!/usr/local/bin/node
+#!/usr/bin/env node
/**
* @fileoverview Utility to generate jsdoc style docs from your source code.
View
2 bin/ncstyle.js
@@ -1,4 +1,4 @@
-#!/usr/local/bin/node
+#!/usr/bin/env node
/**
* @fileoverview This file runs fixjsstyle and gjslint on a directory
View
2 bin/nctest.js
@@ -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
2 bin/nodetestinstance.js
@@ -1,4 +1,4 @@
-#!/usr/local/bin/node
+#!/usr/bin/env node
/**
* @fileoverview Utility class to run tests in their own process (isolation)
View
2 examples/animals/example.js
@@ -1,4 +1,4 @@
-#!/usr/local/bin/node
+#!/usr/bin/env node
/**
* @fileoverview This example will try to showcase some of the great features
View
2 examples/simple/example.js
@@ -1,4 +1,4 @@
-#!/usr/local/bin/node
+#!/usr/bin/env node
/**
* @fileoverview To get started with nclosure you will need to do the
View
2 examples/simple/tests/async/asyncTests.js
@@ -1,4 +1,4 @@
-#!/usr/local/bin/node
+#!/usr/bin/env node
require('nclosure').nclosure();
View
2 examples/simple/tests/syncTests.js
@@ -1,4 +1,4 @@
-#!/usr/local/bin/node
+#!/usr/bin/env node
require('nclosure').nclosure();
View
2 lib/gennode/compileall.js
@@ -1,4 +1,4 @@
-#!/usr/local/bin/node
+#!/usr/bin/env node
/**
View
2 lib/gennode/gennode.js
@@ -1,4 +1,4 @@
-#!/usr/local/bin/node
+#!/usr/bin/env node
/**
View
2 lib/updatedeps.js
@@ -1,4 +1,4 @@
-#!/usr/local/bin/node
+#!/usr/bin/env node
/**
* @fileoverview This is an inernal utiltiy used for development purposes only.
View
2 tests/checkAllSamplesAreRunningTests.js
@@ -1,4 +1,4 @@
-#!/usr/local/bin/node
+#!/usr/bin/env node
require('nclosure').nclosure();
View
2 tests/codingStandardTests.js
@@ -1,4 +1,4 @@
-#!/usr/local/bin/node
+#!/usr/bin/env node
var ng_ = require('nclosure').nclosure();
View
2 tests/compileAndCheckFilesTests.js
@@ -1,4 +1,4 @@
-#!/usr/local/bin/node
+#!/usr/bin/env node
var ng_ = require('nclosure').nclosure();
View
2 tests/compilerCommandLineArgsTests.js
@@ -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.
View
2 tests/docFrameworkTests.js
@@ -1,4 +1,4 @@
-#!/usr/local/bin/node
+#!/usr/bin/env node
/**
* @private
View
2 tests/examplesSuite.js
@@ -1,4 +1,4 @@
-#!/usr/local/bin/node
+#!/usr/bin/env node
require('nclosure').nclosure();
View
2 tests/googNodeTestFrameworkTests.js
@@ -1,4 +1,4 @@
-#!/usr/local/bin/node
+#!/usr/bin/env node
require('nclosure').nclosure();
View
2 tests/runClosureLibraryJSUnitsManual.js
@@ -1,4 +1,4 @@
-#!/usr/local/bin/node
+#!/usr/bin/env node
/**
* @private
View
2 tests/settingsLoaderTests.js
@@ -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.
Something went wrong with that request. Please try again.