Do things the "Go" way

This commit is contained in:
Mitchell Hashimoto 2013-03-23 14:41:09 -07:00
parent 629435282e
commit 642a4586b2
3 changed files with 1 additions and 16 deletions

View File

@ -1,5 +1,5 @@
all:
@mkdir -p bin/
go build -o bin/packer packer/bin-packer
go build -o bin/packer
.PHONY: all

View File

@ -2,11 +2,7 @@
package main
import (
"fmt"
"os"
)
func main() {
fmt.Printf("%#v\n", os.Args)
fmt.Println("Hello, world.")
}

View File

@ -1,11 +0,0 @@
#!/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}"