2015-02-09 04:38:37 +00:00
|
|
|
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
set -x
|
|
|
|
|
|
|
|
cd $(dirname $0)/..
|
|
|
|
|
|
|
|
apt-get update
|
2015-02-17 05:09:26 +00:00
|
|
|
apt-get install -y curl rsync build-essential syslinux xorriso libblkid-dev libmount-dev libselinux1-dev
|
2015-02-09 04:38:37 +00:00
|
|
|
|
2015-02-19 18:26:59 +00:00
|
|
|
if [ ! -d /usr/local/go ]; then
|
2015-03-18 15:27:00 +00:00
|
|
|
GO_VERSION=1.4.2
|
|
|
|
curl -sSL https://golang.org/dl/go${GO_VERSION}.src.tar.gz | tar -v -C /usr/local -xz
|
|
|
|
cd /usr/local/go/src && ./make.bash --no-clean 2>&1
|
|
|
|
PATH=/usr/local/go/bin:${PATH}
|
|
|
|
go clean -i net
|
|
|
|
go install -tags netgo std
|
2015-02-19 18:26:59 +00:00
|
|
|
fi
|