Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F88544234
gopherjs-build.sh
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sat, Oct 19, 10:11
Size
304 B
Mime Type
text/x-shellscript
Expires
Mon, Oct 21, 10:11 (2 d)
Engine
blob
Format
Raw Data
Handle
21788589
Attached To
R2664 SHRINE MedCo Fork
gopherjs-build.sh
View Options
#!/bin/bash
GOSRCFILE
=
$1
if
[
-f
"${GOSRCFILE}"
]
;
then
if
[
${
GOSRCFILE
: -3
}
==
".go"
]
;
then
# build the go code into javascript
gopherjs build -m
"${GOSRCFILE}"
-o
"`basename "
${
GOSRCFILE
}
" .go`.js"
else
echo
"Not a go source file"
fi
else
echo
"Not a valid file passed as parameter"
fi
Event Timeline
Log In to Comment