diff --git a/box.rb b/box.rb index 7bce0ea..9f7d620 100644 --- a/box.rb +++ b/box.rb @@ -20,7 +20,7 @@ run "go build -v #{$repoPath}/cmd/... && go install -v #{$repoPath}/cmd/..." run "apk del build-base" [ - ["route", "route-cli"], + ["route-cli", "route-cli"], ["routed", "routed"], ["route-httpagent", "route-httpagent"], ].each { |x| run "cp /root/go/bin/#{x[0]} /usr/local/bin/#{x[1]}" } diff --git a/cmd/route/.gitignore b/cmd/route-cli/.gitignore similarity index 100% rename from cmd/route/.gitignore rename to cmd/route-cli/.gitignore diff --git a/cmd/route/gopreload.go b/cmd/route-cli/gopreload.go similarity index 100% rename from cmd/route/gopreload.go rename to cmd/route-cli/gopreload.go diff --git a/cmd/route/gops.go b/cmd/route-cli/gops.go similarity index 100% rename from cmd/route/gops.go rename to cmd/route-cli/gops.go diff --git a/cmd/route/main.go b/cmd/route-cli/main.go similarity index 100% rename from cmd/route/main.go rename to cmd/route-cli/main.go diff --git a/mage.go b/mage.go index 597d0d1..ec9a298 100644 --- a/mage.go +++ b/mage.go @@ -96,7 +96,7 @@ func buildBins(goos string) { os.Mkdir(filepath.Join(d, goos), 0777) - for _, pkg := range []string{"route-httpagent", "route", "routed"} { + for _, pkg := range []string{"route-httpagent", "route-cli", "routed"} { goBuild(ctx, []string{"GOOS=" + goos}, filepath.Join(d, goos), "cmd/"+pkg) if goos == runtime.GOOS { @@ -172,7 +172,7 @@ func Package() { qod.ANE(err) qod.Printlnf("%s", dir) - for _, file := range []string{"route", "route-httpagent", "routed"} { + for _, file := range []string{"route-cli", "route-httpagent", "routed"} { if osname == "windows" { file = file + ".exe" }