Source

startime / go.sh

Full commit
#!/bin/bash
# Compile a go program, foo.go will be compiled to foogo

if [ $# -ne 1 ]; then
    echo "usage: $(basename $0) SRC"
    exit 1
fi

src=$1
tmp=$(mktemp)
6g -o $tmp $src
6l -o ${src/.go/go} $tmp
rm $tmp