From dca2f84bc99ed4dda89a5880a2d89a2e9ce71864 Mon Sep 17 00:00:00 2001 From: "Frederick F. Kautz IV" Date: Sun, 2 Nov 2014 14:33:53 -0500 Subject: [PATCH] Refactoring miniosd and minios to a single binary minio --- Makefile | 4 +--- {miniosd => minio}/main.go | 2 +- minios/main.go | 7 ------- server.go | 2 +- 4 files changed, 3 insertions(+), 12 deletions(-) rename {miniosd => minio}/main.go (76%) delete mode 100644 minios/main.go diff --git a/Makefile b/Makefile index e5cf17177..53a8a4201 100644 --- a/Makefile +++ b/Makefile @@ -14,9 +14,7 @@ stage_build: build: stage_build - go install github.com/minios/minios/minios - go install github.com/minios/minios/miniosd - cp tmp/gopath/bin/* bin/ + go install github.com/minios/minios/minio clean: rm -rf tmp bin diff --git a/miniosd/main.go b/minio/main.go similarity index 76% rename from miniosd/main.go rename to minio/main.go index 8391b5d41..7a7cfa6f7 100644 --- a/miniosd/main.go +++ b/minio/main.go @@ -5,6 +5,6 @@ import ( ) func main() { - server := minios.Server{} + server := minio.Server{} server.Start() } diff --git a/minios/main.go b/minios/main.go deleted file mode 100644 index d8fa92921..000000000 --- a/minios/main.go +++ /dev/null @@ -1,7 +0,0 @@ -package main - -import "fmt" - -func main() { - fmt.Println("hello") -} diff --git a/server.go b/server.go index 6c5e021be..2e992a1a6 100644 --- a/server.go +++ b/server.go @@ -1,4 +1,4 @@ -package minios +package minio import ( "fmt"