github.com/prattmic/llgo-embedded@v0.0.0-20150820070356-41cfecea0e1e/llgo-go.sh (about)

     1  #!/bin/sh -e
     2  
     3  scriptpath=$(which "$0")
     4  scriptpath=$(readlink -f "$scriptpath")
     5  bindir=$(dirname "$scriptpath")
     6  prefix=$(dirname "$bindir")
     7  
     8  cmd="$1"
     9  
    10  case "$cmd" in
    11  build | get | install | run | test)
    12    shift
    13    PATH="$prefix/lib/llgo/go-path:$PATH" exec go "$cmd" -compiler gccgo "$@"
    14    ;;
    15  
    16  *)
    17    exec go "$@"
    18    ;;
    19  esac