github.com/yasker/longhorn-engine@v0.0.0-20160621014712-6ed6cfca0729/scripts/build-cli (about)

     1  #!/bin/bash
     2  set -e
     3  
     4  source $(dirname $0)/version
     5  
     6  cd $(dirname $0)/..
     7  
     8  mkdir -p bin
     9  go build -tags "tcmu qcow" -ldflags "-X main.VERSION=$VERSION -linkmode external -extldflags -static" -o bin/longhorn