~nskaggs/+junk/xenial-test

« back to all changes in this revision

Viewing changes to src/github.com/juju/govmomi/govc/build.sh

  • Committer: Nicholas Skaggs
  • Date: 2016-10-24 20:56:05 UTC
  • Revision ID: nicholas.skaggs@canonical.com-20161024205605-z8lta0uvuhtxwzwl
Initi with beta15

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/bash -e
 
2
 
 
3
if ! which gox > /dev/null; then
 
4
  echo "gox is not installed..."
 
5
  exit 1
 
6
fi
 
7
 
 
8
git_version=$(git describe --tags)
 
9
if git_status=$(git status --porcelain 2>/dev/null) && [ -z "${git_status}" ]; then
 
10
  git_version="${git_version}-dirty"
 
11
fi
 
12
 
 
13
ldflags="-X github.com/vmware/govmomi/govc/version.gitVersion ${git_version}"
 
14
os="darwin linux windows freebsd"
 
15
arch="386 amd64"
 
16
 
 
17
gox \
 
18
  -parallel=1 \
 
19
  -ldflags="${ldflags}" \
 
20
  -os="${os}" \
 
21
  -arch="${arch}" \
 
22
  github.com/vmware/govmomi/govc