Skip to content

Commit e56fe64

Browse files
committed
Move tools to root.
1 parent d83a299 commit e56fe64

File tree

5 files changed

+6
-5
lines changed

5 files changed

+6
-5
lines changed

.travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ before_install: |
88
export GOROOT=$HOME/go
99
mkdir $GOROOT
1010
install:
11-
- ./tools/build.py --use_ccache
11+
- ./build.py --use_ccache
1212
script:
1313
- ./tools/test.sh

README.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,11 @@ To install:
1919
```
2020
go get github.com/ry/v8worker2
2121
cd `go env GOPATH`/src/github.com/ry/v8worker2
22-
./tools/build.py # Will take ~30 minutes to compile.
22+
./build.py # Will take ~30 minutes to compile.
2323
go test
2424
```
25-
If you have ccache installed, the build will take advantage of it.
25+
If you have ccache installed, `./build.py --use_ccache` will take advantage of
26+
it. This is useful to avoid rebuilding V8 so much.
2627

2728

2829
## JavaScript API

tools/build.py build.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
parser.set_defaults(rebuild=False, use_ccache=False)
1515
args = parser.parse_args()
1616

17-
root_path = os.path.dirname(os.path.dirname(os.path.realpath(__file__)))
17+
root_path = os.path.dirname(os.path.realpath(__file__))
1818
prebuilt_path = os.path.join(root_path, "prebuilt")
1919
v8_path = os.path.join(root_path, "v8")
2020
out_path = os.path.join(root_path, "out/")

tools/fmt.sh fmt.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/sh
22
set -e
3-
cd `dirname "$0"`/..
3+
cd `dirname "$0"`
44
clang-format -style=Google -i binding.cc binding.h
55
go fmt

tools/test.sh test.sh

File renamed without changes.

0 commit comments

Comments
 (0)