#!/bin/bash

project=$1
version=$2
iteration=$3

go get github.com/Yelp/${project}
mkdir /dist && cd /dist
mkdir /tmp/usrbin
ln -s /nail/opt/bin/${project} /tmp/usrbin/${project}
fpm -s dir -t deb --deb-no-default-config-files --name ${project} \
    --iteration ${iteration} --version ${version} \
    /tmp/usrbin/${project}=/usr/bin/ \
    /go/bin/${project}=/nail/opt/bin/

#!/bin/bash

project=$1
version=$2
iteration=$3

go get github.com/Yelp/${project}
mkdir /dist && cd /dist
mkdir /tmp/usrbin
ln -s /nail/opt/bin/${project} /tmp/usrbin/${project}
fpm -s dir -t deb --deb-no-default-config-files --name ${project} \
    --iteration ${iteration} --version ${version} \
    /tmp/usrbin/${project}=/usr/bin/ \
    /go/bin/${project}=/nail/opt/terraform-0.7/bin/

Build into the right directory
Build into the right directory
