rename cmd/route to cmd/route-cli
This commit is contained in:
parent
b161246079
commit
1ef8f06268
2
box.rb
2
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]}" }
|
||||
|
|
4
mage.go
4
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"
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue