File tree 1 file changed +3
-6
lines changed
1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ cleanup() {
8
8
exit
9
9
}
10
10
11
- trap cleanup EXIT SIGHUP SIGINT SIGTERM
11
+ trap cleanup EXIT HUP INT TERM
12
12
13
13
go install github.com/gopherjs/gopherjs/...
14
14
@@ -20,18 +20,15 @@ gopherjs build -m
20
20
# The GOPATH workspace where the GopherJS project is.
21
21
gopherjsgopath=$( go list -f ' {{.Root}}' github.com/gopherjs/gopherjs)
22
22
23
- rm -r pkg/
23
+ rm -rf pkg/
24
24
25
25
# Use an empty GOPATH workspace with just gopherjs,
26
26
# so that all the standard library packages get written to GOROOT/pkg.
27
27
export GOPATH=" $tmp /gopath"
28
28
mkdir -p " $GOPATH " /src/github.com/gopherjs/gopherjs
29
29
cp -a " $gopherjsgopath " /src/github.com/gopherjs/gopherjs/* " $GOPATH " /src/github.com/gopherjs/gopherjs
30
30
31
- gopherjs install -m github.com/gopherjs/gopherjs/js github.com/gopherjs/gopherjs/nosync
32
- mkdir -p pkg/github.com/gopherjs/gopherjs
33
- cp " $GOPATH " /pkg/* _js_min/github.com/gopherjs/gopherjs/js.a pkg/github.com/gopherjs/gopherjs/js.a
34
- cp " $GOPATH " /pkg/* _js_min/github.com/gopherjs/gopherjs/nosync.a pkg/github.com/gopherjs/gopherjs/nosync.a
31
+ mkdir pkg
35
32
36
33
# Make a copy of GOROOT that is user-writeable,
37
34
# use it to build and copy out standard library packages.
You can’t perform that action at this time.
0 commit comments