summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2009-10-04 10:33:39 +0200
committerRyan Dahl <ry@tinyclouds.org>2009-10-04 10:33:39 +0200
commit39e6d959d74220762c20ae4d207972bc4a6118e9 (patch)
tree1d40fa6d7d131125cdbfe867baf5fb0c74ccea4f /bin
parent13793aed2022c6884b7b8b4dac6c649c28f2c070 (diff)
downloadnode-39e6d959d74220762c20ae4d207972bc4a6118e9.tar.gz
Add node-waf to help with building addons.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/node-waf17
1 files changed, 17 insertions, 0 deletions
diff --git a/bin/node-waf b/bin/node-waf
new file mode 100755
index 000000000..b0280eb0b
--- /dev/null
+++ b/bin/node-waf
@@ -0,0 +1,17 @@
+#!/usr/bin/env python
+import os, sys
+
+
+join = os.path.join
+bindir = os.path.dirname(__file__)
+prefix = join(bindir, "..")
+wafdir = join(prefix, "lib", "node")
+
+w = join(wafdir, 'wafadmin')
+t = join(w, 'Tools')
+sys.path = [w, t] + sys.path
+
+import Scripting
+VERSION="1.5.9"
+Scripting.prepare(t, os.getcwd(), VERSION, wafdir)
+sys.exit(0)