~yolanda.robla/ubuntu/trusty/nodejs/add_distribution

« back to all changes in this revision

Viewing changes to tools/node-waf

  • Committer: Package Import Robot
  • Author(s): Jérémy Lal
  • Date: 2013-08-14 00:16:46 UTC
  • mfrom: (7.1.40 sid)
  • Revision ID: package-import@ubuntu.com-20130814001646-bzlysfh8sd6mukbo
Tags: 0.10.15~dfsg1-4
* Update 2005 patch, adding a handful of tests that can fail on
  slow platforms.
* Add 1004 patch to fix test failures when writing NaN to buffer
  on mipsel.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/usr/bin/env python
2
 
import os, sys
3
 
 
4
 
 
5
 
join = os.path.join
6
 
if os.environ.has_key('PREFIX_NODE'):
7
 
        prefix = os.environ['PREFIX_NODE']
8
 
else:
9
 
        prefix = "/usr"
10
 
wafdir = join(prefix, "share", "nodejs")
11
 
 
12
 
w = join(wafdir, 'wafadmin')
13
 
t = join(w, 'Tools')
14
 
sys.path = [w, t] + sys.path
15
 
 
16
 
import Scripting
17
 
VERSION="1.5.16"
18
 
Scripting.prepare(t, os.getcwd(), VERSION, wafdir)
19
 
sys.exit(0)