@@ -20,8 +20,7 @@ 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
- pkg=pkg
24
- rm -r " $pkg "
23
+ rm -r pkg/
25
24
26
25
# Use an empty GOPATH workspace with just gopherjs,
27
26
# so that all the standard library packages get written to GOROOT/pkg.
@@ -30,9 +29,9 @@ mkdir -p "$GOPATH"/src/github.com/gopherjs/gopherjs
30
29
cp -a " $gopherjsgopath " /src/github.com/gopherjs/gopherjs/* " $GOPATH " /src/github.com/gopherjs/gopherjs
31
30
32
31
gopherjs install -m github.com/gopherjs/gopherjs/js github.com/gopherjs/gopherjs/nosync
33
- mkdir -p " $ pkg" /github.com/gopherjs/gopherjs
34
- cp " $GOPATH " /pkg/* _js_min/github.com/gopherjs/gopherjs/js.a " $ pkg" /github.com/gopherjs/gopherjs/js.a
35
- cp " $GOPATH " /pkg/* _js_min/github.com/gopherjs/gopherjs/nosync.a " $ pkg" /github.com/gopherjs/gopherjs/nosync.a
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
36
35
37
36
# Make a copy of GOROOT that is user-writeable,
38
37
# use it to build and copy out standard library packages.
@@ -137,8 +136,8 @@ gopherjs install -m \
137
136
unicode/utf16 \
138
137
unicode/utf8
139
138
140
- cp -a " $GOROOT " /pkg/* _js_min/* $ pkg
141
- cp -a " $GOROOT " /pkg/* _amd64_js_min/* $ pkg
139
+ cp -a " $GOROOT " /pkg/* _js_min/* pkg/
140
+ cp -a " $GOROOT " /pkg/* _amd64_js_min/* pkg/
142
141
143
- # Rename all *.a files in $ pkg to *.a.js.
144
- find " $ pkg" -name " *.a" -exec sh -c ' mv $0 $0.js' {} \;
142
+ # Rename all *.a files in pkg/ to *.a.js.
143
+ find pkg -name " *.a" -exec sh -c ' mv $0 $0.js' {} \;
0 commit comments