github.com/evdatsion/aphelion-dpos-bft@v0.32.1/scripts/install/install_tendermint_osx.sh (about)

     1  #!/usr/bin/env bash
     2  
     3  # XXX: this script is intended to be run from
     4  # an MacOS machine
     5  
     6  # as written, this script will install
     7  # tendermint core from master branch
     8  REPO=github.com/evdatsion/aphelion-dpos-bft
     9  
    10  # change this to a specific release or branch
    11  BRANCH=master
    12  
    13  if ! [ -x "$(command -v brew)" ]; then
    14    echo 'Error: brew is not installed, to install brew' >&2
    15    echo 'follow the instructions here: https://docs.brew.sh/Installation' >&2
    16    exit 1
    17  fi
    18  
    19  if ! [ -x "$(command -v go)" ]; then
    20    echo 'Error: go is not installed, to install go follow' >&2
    21    echo 'the instructions here: https://golang.org/doc/install#tarball' >&2
    22    echo 'ALSO MAKE SURE TO SETUP YOUR $GOPATH and $GOBIN in your ~/.profile: https://github.com/golang/go/wiki/SettingGOPATH' >&2
    23    exit 1
    24  fi
    25  
    26  if ! [ -x "$(command -v make)" ]; then
    27    echo 'Make not installed, installing using brew...'
    28    brew install make
    29  fi
    30  
    31  # get the code and move into repo
    32  go get $REPO
    33  cd $GOPATH/src/$REPO
    34  
    35  # build & install
    36  git checkout $BRANCH
    37  # XXX: uncomment if branch isn't master
    38  # git fetch origin $BRANCH
    39  make get_tools
    40  make install