瀏覽代碼

Move update_d3flamegraph.sh script from the root directory. (#370)

Alexey Alexandrov 7 年之前
父節點
當前提交
783adb792f
共有 1 個檔案被更改,包括 3 行新增1 行删除
  1. 3
    1
      third_party/update_d3flamegraph.sh

update_d3flamegraph.sh → third_party/update_d3flamegraph.sh 查看文件

@@ -8,7 +8,9 @@ D3FLAMEGRAPH_VERSION="2.0.0-alpha4"
8 8
 D3FLAMEGRAPH_JS="d3-flamegraph.js"
9 9
 D3FLAMEGRAPH_CSS="d3-flamegraph.css"
10 10
 
11
-D3FLAMEGRAPH_DIR=third_party/d3flamegraph
11
+cd $(dirname $0)
12
+
13
+D3FLAMEGRAPH_DIR=d3flamegraph
12 14
 
13 15
 generate_d3flamegraph_go() {
14 16
     local d3_js=$(curl -s "${D3FLAMEGRAPH_REPO}/${D3FLAMEGRAPH_VERSION}/dist/${D3FLAMEGRAPH_JS}" | sed 's/`/`+"`"+`/g')