Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 09df05843b
Fetching contributors…

Cannot retrieve contributors at this time

executable file 23 lines (16 sloc) 0.412 kb
#!/usr/bin/env bash
. "$TM_SUPPORT_PATH/lib/bash_init.sh"
. gobin
. goversion
require_cmd "$GC"
require_cmd "$AR"
TMPDIR="`mktemp -d -t gopack`"
trap "rm -rf '$TMPDIR'" EXIT
BASENAME="`basename -- "$*" .go`"
SOURCE="$*"
TARGET="$TMPDIR/$BASENAME.a"
OBJECT="$TMPDIR/$BASENAME.$O"
set -e
"$GC" -o "$OBJECT" "$SOURCE" 1>&2
"$AR" vgrc "$TARGET" "$OBJECT" | /usr/bin/sed "s|$TMPDIR/*||"
echo "Build succeeded."
Jump to Line
Something went wrong with that request. Please try again.