Commit 642a4586 authored by Mitchell Hashimoto's avatar Mitchell Hashimoto

Do things the "Go" way

parent 62943528
all:
@mkdir -p bin/
go build -o bin/packer packer/bin-packer
go build -o bin/packer
.PHONY: all
......@@ -2,11 +2,7 @@
package main
import (
"fmt"
"os"
)
func main() {
fmt.Printf("%#v\n", os.Args)
fmt.Println("Hello, world.")
}
#!/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}"
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment