attempt autobuild again
Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
parent
a095ab6a9f
commit
f18bfca154
15
main.go
15
main.go
|
@ -163,6 +163,7 @@ func repoworld() {
|
|||
break
|
||||
}
|
||||
}
|
||||
newCmds = append(newCmds, []string{"cd", "."})
|
||||
newCmds = append(newCmds, []string{"rm", "-rf", "go/src/"})
|
||||
newCmds = append(newCmds, []string{"chmod", "700", "-R", "go/pkg/"})
|
||||
newCmds = append(newCmds, []string{"rm", "-rf", "go/pkg/"})
|
||||
|
@ -179,17 +180,21 @@ func repoworld() {
|
|||
buildOptions.NewLabel("get autotypist")
|
||||
buildOptions.NewButton("go get", func () {
|
||||
var newCmds [][]string
|
||||
newCmds = append(newCmds, []string{"mkdir", "-p", "~/go/src/go.wit.com/apps"})
|
||||
newCmds = append(newCmds, []string{"cd", "."})
|
||||
newCmds = append(newCmds, []string{"mkdir", "-p", "go/src/go.wit.com/apps/"})
|
||||
newCmds = append(newCmds, []string{"cd", "go/src/go.wit.com/apps/"})
|
||||
newCmds = append(newCmds, []string{"go", "get", "-v", "-u", "go.wit.com/apps/myrepos"})
|
||||
newCmds = append(newCmds, []string{"cd", "go/src/go.wit.com/apps/myrepos"})
|
||||
newCmds = append(newCmds, []string{"go", "get", "-v", "-u", "."})
|
||||
newCmds = append(newCmds, []string{"go", "get", "-v", "-u", "go.wit.com/gui/toolkits"})
|
||||
newCmds = append(newCmds, []string{"cd", "go/src/go.wit.com/gui/toolkits"})
|
||||
newCmds = append(newCmds, []string{"go", "get", "-v", "go.wit.com/gui/toolkits"})
|
||||
newCmds = append(newCmds, []string{"cd", "go/src/go.wit.com/gui/toolkits/andlabs"})
|
||||
newCmds = append(newCmds, []string{"go", "get", "-v", "-u", "."})
|
||||
newCmds = append(newCmds, []string{"go", "make"})
|
||||
newCmds = append(newCmds, []string{"cd", "go/src/go.wit.com/gui/toolkits/gocui"})
|
||||
newCmds = append(newCmds, []string{"go", "get", "-v", "-u", "."})
|
||||
newCmds = append(newCmds, []string{"cd", "go/src/go.wit.com/gui/toolkits"})
|
||||
newCmds = append(newCmds, []string{"make"})
|
||||
newCmds = append(newCmds, []string{"cd", "go/src/go.wit.com/apps/myrepos"})
|
||||
newCmds = append(newCmds, []string{"go", "make"})
|
||||
newCmds = append(newCmds, []string{"make"})
|
||||
script = newCmds
|
||||
setGitCommands()
|
||||
doit.Enable()
|
||||
|
|
4
unix.go
4
unix.go
|
@ -34,12 +34,12 @@ func goMake(dryRun string) bool {
|
|||
cmd := line[0]
|
||||
s := strings.Join(line[1:], " ")
|
||||
path := repopath + workingPath
|
||||
log.Warn("NEED TO RUN path =", path, "cmd =", cmd, "argv:", s)
|
||||
log.Warn("NEED TO RUN path =", path, "cmd =", cmd, s)
|
||||
if dryRun == "--dry-run" {
|
||||
continue
|
||||
}
|
||||
if dryRun == "--doit" {
|
||||
log.Warn("Actually RUN path =", path, "cmd =", cmd, "argv:", s)
|
||||
log.Warn("Actually RUN path =", path, "cmd =", cmd, s)
|
||||
err, b, output := repostatus.RunCmd(repopath, line)
|
||||
if err != nil {
|
||||
log.Info("ABEND EXECUTION")
|
||||
|
|
Loading…
Reference in New Issue