Skip to content

Commit c79635e

Browse files
GnorTechrogerwang
authored andcommitted
[tools] make nw-headers file from node-nw dir
1 parent 6c9e933 commit c79635e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tools/make-nw-headers.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ def update_uvh(tmp_dir, header_files):
1313
header_f = os.path.join(tmp_dir, 'node', 'src', file)
1414
rfile = open(header_f, 'r')
1515
old = rfile.read()
16-
new = re.sub('third_party/node/deps/uv/include/uv.h', 'uv.h', old, 0)
16+
new = re.sub('third_party/node-nw/deps/uv/include/uv.h', 'uv.h', old, 0)
1717
wfile = open(header_f, 'w')
1818
wfile.write(new)
1919
wfile.close()
@@ -46,9 +46,10 @@ def update_uvh(tmp_dir, header_files):
4646

4747
# prepare the files to compress
4848
print 'Begin copy file'
49-
base = os.path.join(third_party_dir, 'node')
49+
base = os.path.join(third_party_dir, 'node-nw')
5050
for dirpath, dirnames, filenames in os.walk(base):
5151
relpath = dirpath.replace(third_party_dir + os.sep, '')
52+
relpath = relpath.replace('node-nw', 'node')
5253
for dirs in dirnames:
5354
if dirs =='gyp' or dirs == 'gyp_addon':
5455
try:

0 commit comments

Comments
 (0)