projects
/
platform
/
upstream
/
nodejs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1e577f3
)
js2c: fix to support files other than ones ending with 2 char extensions
author
Nathan Rajlich
<nathan@tootallnate.net>
Wed, 14 Mar 2012 01:31:04 +0000
(18:31 -0700)
committer
Ben Noordhuis
<info@bnoordhuis.nl>
Sat, 31 Mar 2012 23:44:54 +0000
(
01:44
+0200)
Previously this was basically hard-coded for *.js files, but now we
need to include the 'config.gypi' file in there as well.
tools/js2c.py
patch
|
blob
|
history
diff --git
a/tools/js2c.py
b/tools/js2c.py
index
fd8b25b
..
69ec8a8
100755
(executable)
--- a/
tools/js2c.py
+++ b/
tools/js2c.py
@@
-288,7
+288,7
@@
def JS2C(source, target):
lines = ExpandMacros(lines, macros)
lines = CompressScript(lines, do_jsmin)
data = ToCArray(s, lines)
- id =
(os.path.split(str(s))[1])[:-3
]
+ id =
os.path.basename(str(s)).split('.')[0
]
if delay: id = id[:-6]
if delay:
delay_ids.append((id, len(lines)))