File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44# perfetto builds write through this tool.
55set -e
66
7- tools_dir =$( CDPATH= cd -- " $( dirname -- " $0 " ) " && pwd)
8- version=$( cat " $tools_dir /../../deps/perfetto/VERSION" )
9- trace_processor=" $1 "
7+ script_dir =$( CDPATH= cd -- " $( dirname -- " $0 " ) " && pwd)
8+ version=$( cat " $script_dir /../../deps/perfetto/VERSION" )
9+ trace_processor=" ${1 :- $script_dir / trace_processor_shell} "
1010
1111# Perfetto names its release archives <os>-<arch>, which does not match uname.
1212case " $( uname -s) " in
@@ -22,12 +22,12 @@ case "$(uname -m)" in
2222esac
2323
2424url=" https://github.com/google/perfetto/releases/download/v$version /$os -$arch .zip"
25- archive=" $tools_dir / $os - $arch .zip "
25+ archive=$( mktemp )
2626
2727rm -f " $trace_processor "
2828echo " Downloading $url "
2929curl -sSfL -o " $archive " " $url "
30- unzip -q -j -o " $archive " ' */trace_processor_shell' -d " $tools_dir "
30+ unzip -q -j -o " $archive " ' */trace_processor_shell' -d " $script_dir "
3131rm -f " $archive "
3232chmod +x " $trace_processor "
3333# The archive carries the release's own mtime. Make decides whether the tool is
You can’t perform that action at this time.
0 commit comments