Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F86256137
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 5, 08:02
Size
304 B
Mime Type
text/x-shellscript
Expires
Mon, Oct 7, 08:02 (2 d)
Engine
blob
Format
Raw Data
Handle
21385563
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