rename cmd/route to cmd/route-cli

This commit is contained in:
Cadey Ratio 2017-09-30 13:28:10 -07:00
parent b161246079
commit 1ef8f06268
No known key found for this signature in database
GPG Key ID: D607EE27C2E7F89A
6 changed files with 3 additions and 3 deletions

2
box.rb
View File

@ -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]}" }

View File

@ -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"
}