@@ -23,22 +23,22 @@ gopherjs build -m
23
23
GOPHERJSGOPATH=$( go list -f ' {{.Root}}' github.com/gopherjs/gopherjs)
24
24
25
25
PKG=pkg
26
- rm -r $PKG
26
+ rm -r " $PKG "
27
27
28
28
# Use an empty GOPATH workspace with just gopherjs,
29
29
# so that all the standard library packages get written to GOROOT/pkg.
30
30
export GOPATH=" $tmp_gopath "
31
- mkdir -p $GOPATH /src/github.com/gopherjs/gopherjs
32
- cp -a $GOPHERJSGOPATH /src/github.com/gopherjs/gopherjs/* $GOPATH /src/github.com/gopherjs/gopherjs
31
+ mkdir -p " $GOPATH " /src/github.com/gopherjs/gopherjs
32
+ cp -a " $GOPHERJSGOPATH " /src/github.com/gopherjs/gopherjs/* " $GOPATH " /src/github.com/gopherjs/gopherjs
33
33
34
34
gopherjs install -m github.com/gopherjs/gopherjs/js github.com/gopherjs/gopherjs/nosync
35
- mkdir -p $PKG /github.com/gopherjs/gopherjs
36
- cp $GOPATH /pkg/* _js_min/github.com/gopherjs/gopherjs/js.a $PKG /github.com/gopherjs/gopherjs/js.a
37
- cp $GOPATH /pkg/* _js_min/github.com/gopherjs/gopherjs/nosync.a $PKG /github.com/gopherjs/gopherjs/nosync.a
35
+ mkdir -p " $PKG " /github.com/gopherjs/gopherjs
36
+ cp " $GOPATH " /pkg/* _js_min/github.com/gopherjs/gopherjs/js.a " $PKG " /github.com/gopherjs/gopherjs/js.a
37
+ cp " $GOPATH " /pkg/* _js_min/github.com/gopherjs/gopherjs/nosync.a " $PKG " /github.com/gopherjs/gopherjs/nosync.a
38
38
39
39
# Make a copy of GOROOT that is user-writeable,
40
40
# use it to build and copy out standard library packages.
41
- cp -a $( go env GOROOT) /. " $tmp_goroot "
41
+ cp -a " $( go env GOROOT) " " $tmp_goroot "
42
42
export GOROOT=" $tmp_goroot "
43
43
gopherjs install -m \
44
44
archive/tar \
@@ -139,8 +139,8 @@ gopherjs install -m \
139
139
unicode/utf16 \
140
140
unicode/utf8
141
141
142
- cp -a $GOROOT /pkg/* _js_min/* $PKG
143
- cp -a $GOROOT /pkg/* _amd64_js_min/* $PKG
142
+ cp -a " $GOROOT " /pkg/* _js_min/* $PKG
143
+ cp -a " $GOROOT " /pkg/* _amd64_js_min/* $PKG
144
144
145
145
# Rename all *.a files in $PKG to *.a.js.
146
146
find " $PKG " -name " *.a" -exec sh -c ' mv $0 $0.js' {} \;
0 commit comments