summaryrefslogtreecommitdiff
path: root/globalTestingOptions.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-01-30 17:22:46 -0600
committerJeff Carr <[email protected]>2024-01-30 17:22:46 -0600
commit69f56d1ef0341de10c7a80f3c7ea7da9469b7005 (patch)
tree3ad7a60f47f83b4e555bbe631782331612daaa48 /globalTestingOptions.go
parent22a2a8e9df71633478c66f98815207990b1f4944 (diff)
remove references to me
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'globalTestingOptions.go')
-rw-r--r--globalTestingOptions.go54
1 files changed, 11 insertions, 43 deletions
diff --git a/globalTestingOptions.go b/globalTestingOptions.go
index 1631db1..4804e64 100644
--- a/globalTestingOptions.go
+++ b/globalTestingOptions.go
@@ -2,6 +2,7 @@ package main
import (
"os"
+ "path/filepath"
"go.wit.com/lib/gui/repostatus"
@@ -19,42 +20,6 @@ func globalTestingOptions(box *gui.Node) {
me.autoRebuildButton.SetLabel("rebuild autotypist")
})
- /*
- me.downloadEverythingButton = test1.NewButton("go get go.wit.com", func() {
- me.downloadEverythingButton.Disable()
- me.autoWorkingPwd.SetValue("/home/jcarr/go/src")
- var perfect bool = true
- repos := myrepolist()
- for _, line := range repos {
- log.Verbose("repo =", line)
- path, _, _, _ := splitLine(line)
- path = strings.TrimSpace(path)
- if path == "#" {
- // skip comment lines
- continue
- }
- if doesExist("/home/jcarr/go/src/" + path) {
- continue
- }
- // attempt to download it
- quickCmd("/home/jcarr/go/src/go.wit.com", []string{"go", "get", "-v", path})
- perfect = false
- }
-
- if perfect {
- var notes string
- notes = "you have already downloaded\neverything on go.wit.com"
- me.autoWorkingPwd.SetValue(notes)
- me.downloadEverythingButton.Disable()
- return
- } else {
- var notes string
- notes = "download everything failed"
- me.autoWorkingPwd.SetValue(notes)
- me.downloadEverythingButton.Enable()
- }
- })
- */
var listallB *gui.Node
listallB = test1.NewButton("go.wit.com/list", func() {
listallB.Disable()
@@ -72,9 +37,12 @@ func globalTestingOptions(box *gui.Node) {
func attemptAutoRebuild() {
os.Setenv("GO111MODULE", "off")
- fullpath := "/home/jcarr/go/"
- quickCmd(fullpath, []string{"mkdir", "-p", "/home/jcarr/go/src/go.wit.com/apps/"})
- fullpath = "/home/jcarr/go/src/go.wit.com/apps/"
+ homeDir := me.userHomePwd.String()
+ fullpath := filepath.Join(homeDir, "go")
+ // fullpath := "/home/jcarr/go/"
+ quickCmd(fullpath, []string{"mkdir", "-p", "src/go.wit.com/apps/"})
+
+ fullpath = filepath.Join(homeDir, "go/src/go.wit.com/apps/")
quickCmd(fullpath, []string{"go", "get", "-v", "go.wit.com/apps/autotypist"})
quickCmd(fullpath, []string{"go", "get", "-v", "go.wit.com/toolkits/debian"})
@@ -83,19 +51,19 @@ func attemptAutoRebuild() {
quickCmd(fullpath, []string{"go", "get", "-v", "go.wit.com/toolkits/gocui"})
quickCmd(fullpath, []string{"go", "get", "-v", "go.wit.com/toolkits/andlabs"})
- fullpath = "/home/jcarr/go/src/go.wit.com/toolkits/nocui/"
+ fullpath = filepath.Join(homeDir, "go/src/go.wit.com/toolkits/nocui/")
quickCmd(fullpath, []string{"go", "get", "-v", "-u", "."})
quickCmd(fullpath, []string{"go", "build", "-v", "-x", "-buildmode=plugin", "-o", "../nocui.so"})
- fullpath = "/home/jcarr/go/src/go.wit.com/toolkits/gocui/"
+ fullpath = filepath.Join(homeDir, "go/src/go.wit.com/toolkits/gocui/")
quickCmd(fullpath, []string{"go", "get", "-v", "-u", "."})
quickCmd(fullpath, []string{"go", "build", "-v", "-x", "-buildmode=plugin", "-o", "../gocui.so"})
- fullpath = "/home/jcarr/go/src/go.wit.com/toolkits/andlabs/"
+ fullpath = filepath.Join(homeDir, "go/src/go.wit.com/toolkits/andlabs/")
quickCmd(fullpath, []string{"go", "get", "-v", "-u", "."})
quickCmd(fullpath, []string{"go", "build", "-v", "-x", "-buildmode=plugin", "-o", "../andlabs.so"})
- fullpath = "/home/jcarr/go/src/go.wit.com/apps/autotypist"
+ fullpath = filepath.Join(homeDir, "go/src/go.wit.com/apps/autotypist")
quickCmd(fullpath, []string{"go", "get", "-v", "-u", "."})
quickCmd(fullpath, []string{"go", "build", "-v", "-x"})
}