From 090d101d51c25ef1cf92ea21840c1b82cd47dec4 Mon Sep 17 00:00:00 2001 From: Dan Buch Date: Mon, 5 Nov 2012 20:59:42 -0500 Subject: [PATCH] More namespacing and goofing around with unimportant crap --- gotime/Makefile | 13 ++++++++++--- .../gotour-artifacts}/channels/main.go | 0 .../exercise-fibonacci-closure/main.go | 0 .../exercise-http-handlers/main.go | 0 .../gotour-artifacts}/exercise-maps/main.go | 0 .../gotour-artifacts}/exercise-slices/main.go | 0 .../gotour-artifacts}/exercise-sqrt/main.go | 0 .../gotour-artifacts}/goroutines/main.go | 0 .../gotour-artifacts}/hello-web/main.go | 0 .../gotour-artifacts}/maps/main.go | 0 .../gotour-artifacts}/ranges/main.go | 0 11 files changed, 10 insertions(+), 3 deletions(-) rename gotime/src/{gotour.meatballhat.com => meatballhat.com/gotour-artifacts}/channels/main.go (100%) rename gotime/src/{gotour.meatballhat.com => meatballhat.com/gotour-artifacts}/exercise-fibonacci-closure/main.go (100%) rename gotime/src/{gotour.meatballhat.com => meatballhat.com/gotour-artifacts}/exercise-http-handlers/main.go (100%) rename gotime/src/{gotour.meatballhat.com => meatballhat.com/gotour-artifacts}/exercise-maps/main.go (100%) rename gotime/src/{gotour.meatballhat.com => meatballhat.com/gotour-artifacts}/exercise-slices/main.go (100%) rename gotime/src/{gotour.meatballhat.com => meatballhat.com/gotour-artifacts}/exercise-sqrt/main.go (100%) rename gotime/src/{gotour.meatballhat.com => meatballhat.com/gotour-artifacts}/goroutines/main.go (100%) rename gotime/src/{gotour.meatballhat.com => meatballhat.com/gotour-artifacts}/hello-web/main.go (100%) rename gotime/src/{gotour.meatballhat.com => meatballhat.com/gotour-artifacts}/maps/main.go (100%) rename gotime/src/{gotour.meatballhat.com => meatballhat.com/gotour-artifacts}/ranges/main.go (100%) diff --git a/gotime/Makefile b/gotime/Makefile index fb8cdfd..0df5341 100644 --- a/gotime/Makefile +++ b/gotime/Makefile @@ -1,16 +1,23 @@ PACKAGES := $(foreach pkg,\ - $(shell ls src/gotour.meatballhat.com),\ - $(patsubst %,gotour.meatballhat.com/%,$(pkg))\ + $(shell ls src/meatballhat.com/gotour-artifacts),\ + $(patsubst %,meatballhat.com/gotour-artifacts/%,$(pkg))\ ) all: go install $(PACKAGES) +fmt: + go fmt $(PACKAGES) + clean: rm -v bin/* +publish: + rsync -avz src/meatballhat.com/gotour-artifacts mbh:meatballhat.com/docroot/ + ssh mbh "find meatballhat.com/docroot/gotour-artifacts -type d -exec chmod 755 {} \; && find meatballhat.com/docroot/gotour-artifacts/ -type f -exec chmod 644 {} \;" + env: @echo GOPATH=$(GOPATH) @echo PACKAGES=$(PACKAGES) -.PHONY: all clean +.PHONY: all clean publish env fmt diff --git a/gotime/src/gotour.meatballhat.com/channels/main.go b/gotime/src/meatballhat.com/gotour-artifacts/channels/main.go similarity index 100% rename from gotime/src/gotour.meatballhat.com/channels/main.go rename to gotime/src/meatballhat.com/gotour-artifacts/channels/main.go diff --git a/gotime/src/gotour.meatballhat.com/exercise-fibonacci-closure/main.go b/gotime/src/meatballhat.com/gotour-artifacts/exercise-fibonacci-closure/main.go similarity index 100% rename from gotime/src/gotour.meatballhat.com/exercise-fibonacci-closure/main.go rename to gotime/src/meatballhat.com/gotour-artifacts/exercise-fibonacci-closure/main.go diff --git a/gotime/src/gotour.meatballhat.com/exercise-http-handlers/main.go b/gotime/src/meatballhat.com/gotour-artifacts/exercise-http-handlers/main.go similarity index 100% rename from gotime/src/gotour.meatballhat.com/exercise-http-handlers/main.go rename to gotime/src/meatballhat.com/gotour-artifacts/exercise-http-handlers/main.go diff --git a/gotime/src/gotour.meatballhat.com/exercise-maps/main.go b/gotime/src/meatballhat.com/gotour-artifacts/exercise-maps/main.go similarity index 100% rename from gotime/src/gotour.meatballhat.com/exercise-maps/main.go rename to gotime/src/meatballhat.com/gotour-artifacts/exercise-maps/main.go diff --git a/gotime/src/gotour.meatballhat.com/exercise-slices/main.go b/gotime/src/meatballhat.com/gotour-artifacts/exercise-slices/main.go similarity index 100% rename from gotime/src/gotour.meatballhat.com/exercise-slices/main.go rename to gotime/src/meatballhat.com/gotour-artifacts/exercise-slices/main.go diff --git a/gotime/src/gotour.meatballhat.com/exercise-sqrt/main.go b/gotime/src/meatballhat.com/gotour-artifacts/exercise-sqrt/main.go similarity index 100% rename from gotime/src/gotour.meatballhat.com/exercise-sqrt/main.go rename to gotime/src/meatballhat.com/gotour-artifacts/exercise-sqrt/main.go diff --git a/gotime/src/gotour.meatballhat.com/goroutines/main.go b/gotime/src/meatballhat.com/gotour-artifacts/goroutines/main.go similarity index 100% rename from gotime/src/gotour.meatballhat.com/goroutines/main.go rename to gotime/src/meatballhat.com/gotour-artifacts/goroutines/main.go diff --git a/gotime/src/gotour.meatballhat.com/hello-web/main.go b/gotime/src/meatballhat.com/gotour-artifacts/hello-web/main.go similarity index 100% rename from gotime/src/gotour.meatballhat.com/hello-web/main.go rename to gotime/src/meatballhat.com/gotour-artifacts/hello-web/main.go diff --git a/gotime/src/gotour.meatballhat.com/maps/main.go b/gotime/src/meatballhat.com/gotour-artifacts/maps/main.go similarity index 100% rename from gotime/src/gotour.meatballhat.com/maps/main.go rename to gotime/src/meatballhat.com/gotour-artifacts/maps/main.go diff --git a/gotime/src/gotour.meatballhat.com/ranges/main.go b/gotime/src/meatballhat.com/gotour-artifacts/ranges/main.go similarity index 100% rename from gotime/src/gotour.meatballhat.com/ranges/main.go rename to gotime/src/meatballhat.com/gotour-artifacts/ranges/main.go