From 642a4586b2f273a951ed42467dbcc85f691b6ec5 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Sat, 23 Mar 2013 14:41:09 -0700 Subject: [PATCH] Do things the "Go" way --- Makefile | 2 +- src/packer/bin-packer/main.go => packer.go | 4 ---- setup.sh | 11 ----------- 3 files changed, 1 insertion(+), 16 deletions(-) rename src/packer/bin-packer/main.go => packer.go (57%) delete mode 100755 setup.sh diff --git a/Makefile b/Makefile index 4eccad75a..a12682c5a 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ all: @mkdir -p bin/ - go build -o bin/packer packer/bin-packer + go build -o bin/packer .PHONY: all diff --git a/src/packer/bin-packer/main.go b/packer.go similarity index 57% rename from src/packer/bin-packer/main.go rename to packer.go index 03a78cb50..643a564d8 100644 --- a/src/packer/bin-packer/main.go +++ b/packer.go @@ -2,11 +2,7 @@ package main import ( - "fmt" - "os" ) func main() { - fmt.Printf("%#v\n", os.Args) - fmt.Println("Hello, world.") } diff --git a/setup.sh b/setup.sh deleted file mode 100755 index ce3941ec6..000000000 --- a/setup.sh +++ /dev/null @@ -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}"