#!/bin/sh

export GOROOT_FINAL=$EXTERNALS_INSTALL_LOCATION/go
cd src
./make.bash

mkdir $EXTERNALS_INSTALL_LOCATION/go
cd ../
cp -r ./* $EXTERNALS_INSTALL_LOCATION/go
ln -s $EXTERNALS_INSTALL_LOCATION/go/bin/go $EXTERNALS_INSTALL_LOCATION/bin/go
ln -s $EXTERNALS_INSTALL_LOCATION/go/bin/gofmt $EXTERNALS_INSTALL_LOCATION/bin/gofmt