We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 96af716 commit 31bb276Copy full SHA for 31bb276
playground/update.sh
@@ -1,6 +1,14 @@
1
#!/bin/sh
2
set -e
3
4
+cleanup() {
5
+ rm -rf /tmp/gopherjsplayground_gopath
6
+ rm -rf /tmp/gopherjsplayground_goroot
7
+ exit
8
+}
9
+
10
+trap cleanup EXIT SIGHUP SIGINT SIGTERM
11
12
go install github.com/gopherjs/gopherjs/...
13
14
go generate github.com/gopherjs/gopherjs.github.io/playground/internal/imports
@@ -131,8 +139,5 @@ gopherjs install -m \
131
139
cp -r $GOROOT/pkg/*_js_min/* $PKG
132
140
cp -r $GOROOT/pkg/*_amd64_js_min/* $PKG
133
141
134
-rm -r /tmp/gopherjsplayground_goroot
135
-rm -r /tmp/gopherjsplayground_gopath
136
-
137
142
# Rename all *.a files in $PKG to *.a.js.
138
143
find "$PKG" -name "*.a" -exec sh -c 'mv $0 $0.js' {} \;
0 commit comments