From 62e074f4f9d91f47e7fc71c7bf6a259a70dfe5d3 Mon Sep 17 00:00:00 2001 From: Joshua Bussdieker Date: Thu, 17 Nov 2011 23:19:56 -0800 Subject: [PATCH] Clone and install go in the gos folder --- bin/gvm-install | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/bin/gvm-install b/bin/gvm-install index 012b7c7..4da262e 100755 --- a/bin/gvm-install +++ b/bin/gvm-install @@ -1,8 +1,12 @@ #!/bin/bash - +INSTALL_ROOT=~/.gvm/gos/go-$2 if [[ $1 == "install" ]]; then if [[ -n $2 ]]; then echo "Installing version $2" + echo " * Downloading..." + hg clone -u release.r$2 https://go.googlecode.com/hg/ $INSTALL_ROOT > /dev/null 2>&1 + echo " * Compiling..." + cd $INSTALL_ROOT/src;./all.bash > /dev/null 2>&1 exit 0 else echo "ERROR: Please specifiy the version"