File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ rm -r $PKG
29
29
# so that all the standard library packages get written to GOROOT/pkg.
30
30
export GOPATH=" $tmp_gopath "
31
31
mkdir -p $GOPATH /src/github.com/gopherjs/gopherjs
32
- cp -r $GOPHERJSGOPATH /src/github.com/gopherjs/gopherjs/* $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
35
mkdir -p $PKG /github.com/gopherjs/gopherjs
@@ -38,7 +38,7 @@ cp $GOPATH/pkg/*_js_min/github.com/gopherjs/gopherjs/nosync.a $PKG/github.com/go
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 -r $( 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 -r $GOROOT /pkg/* _js_min/* $PKG
143
- cp -r $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' {} \;
You can’t perform that action at this time.
0 commit comments