This repository has been archived on 2022-08-17. You can view files and clone it, but cannot push or open issues or pull requests.
dex/env
2016-03-02 12:41:24 -08:00

12 lines
350 B
Plaintext

export GOPATH=${PWD}/Godeps/_workspace
rm -rf $GOPATH/src/github.com/coreos/dex
mkdir -p $GOPATH/src/github.com/coreos/
# Only attempt to link dex into godeps if it isn't already there
[ -d $GOPATH/src/github.com/coreos/dex ] || ln -s ${PWD} $GOPATH/src/github.com/coreos/dex
export VERSION=$(./git-version)
LD_FLAGS="-X main.version=${VERSION}"