mirror of https://github.com/hashicorp/packer
parent
1748ca31f6
commit
1578f9612d
@ -0,0 +1,5 @@
|
||||
all:
|
||||
@mkdir -p bin/
|
||||
go build -o bin/packer packer/bin-packer
|
||||
|
||||
.PHONY: all
|
||||
@ -0,0 +1,11 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# Get the full path to the directory where this script is, because
|
||||
# GOPATH prefers full paths.
|
||||
SOURCE="${BASH_SOURCE[0]}"
|
||||
while [ -h "$SOURCE" ] ; do SOURCE="$(readlink "$SOURCE")"; done
|
||||
DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
|
||||
|
||||
# Setup our GOPATH
|
||||
echo "Setting GOPATH to: ${DIR}"
|
||||
export GOPATH="${DIR}"
|
||||
Loading…
Reference in new issue