mirror of https://github.com/lukechilds/node.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
692 B
24 lines
692 B
10 years ago
|
#!/usr/bin/env bash
|
||
|
|
||
|
umask 077
|
||
|
TEMP_SCRIPT_FILE="/tmp/node-tick-processor-input-script-$$"
|
||
|
tools_path=`cd $(dirname "$0");pwd`
|
||
|
v8_tools="$tools_path/../../deps/v8/tools"
|
||
|
|
||
|
cat "$tools_path/polyfill.js" "$v8_tools/splaytree.js" "$v8_tools/codemap.js" \
|
||
|
"$v8_tools/csvparser.js" "$v8_tools/consarray.js" \
|
||
|
"$v8_tools/profile.js" "$v8_tools/profile_view.js" \
|
||
|
"$v8_tools/logreader.js" "$v8_tools/tickprocessor.js" \
|
||
|
"$v8_tools/SourceMap.js" \
|
||
|
"$v8_tools/tickprocessor-driver.js" >> "$TEMP_SCRIPT_FILE"
|
||
|
|
||
|
NODE=${NODE:-node}
|
||
|
|
||
|
if [ ! -x "$NODE" ] && [ -x "$(dirname "$0")/../../iojs" ]; then
|
||
|
NODE="$(dirname "$0")/../../iojs"
|
||
|
fi
|
||
|
|
||
|
"$NODE" "$TEMP_SCRIPT_FILE" $@
|
||
|
|
||
|
rm -f "$TEMP_SCRIPT_FILE"
|