github.com/cloudfoundry-attic/ltc@v0.0.0-20151123212628-098adc7919fc/scripts/install (about)

     1  #!/bin/bash -e
     2  
     3  [ -z "$DEBUG" ] || set -x
     4  
     5  go_version=$(grep -o "[[:digit:]]\+\.[[:digit:]]\+\.[[:digit:]]\+" <<< $(go version))
     6  go_version_num=$(tr -d '.' <<< $go_version)
     7  
     8  if [ $go_version_num -lt 140 ]
     9  then
    10    printf "You must have Go 1.4+ installed and set up correctly"
    11    exit 1
    12  fi
    13  
    14  ltc_src=github.com/cloudfoundry-incubator/ltc
    15  export GOPATH="$GOPATH/src/$ltc_src/Godeps/_workspace:$GOPATH"
    16  
    17  go install $ltc_src