compiles and runs

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2024-01-17 01:55:22 -06:00
parent 6a34c69970
commit fea46f4c0a
4 changed files with 16 additions and 19 deletions

View File

@ -1,13 +1,20 @@
all: build
myrepos
# ./myrepos >/tmp/myrepos.stderr 2>&1
./myrepos
stderr: build
echo "writing to /tmp/myrepos.stderr"
myrepos >/tmp/myrepos.stderr 2>&1
build:
echo "build it!"
-mkdir -p resources/
-cp myrepolist resources/
-cp ~/go/src/go.wit.com/gui/toolkits/*.so resources/
-rm resources/*.so
go build -v -x
install:
cp ~/go/src/go.wit.com/gui/toolkits/*.so resources/
rm -f ~/go/src/go.wit.com/gui/toolkits/*.so
go install -v -x
myrepos
check-git-clean:
@git diff-index --quiet HEAD -- || (echo "Git repository is dirty, please commit your changes first"; exit 1)

View File

@ -13,6 +13,9 @@ func globalDisplayOptions(box *gui.Node) {
groupvbox := group1.NewBox("bw vbox", false)
// grouphbox := groupvbox.NewBox("bw hbox", true)
groupvbox.NewButton("Show Repository Window", func () {
reposwin.Draw()
})
me.autoHidePerfect = groupvbox.NewCheckbox("Hide repos")
me.autoHidePerfect.Custom = func() {
me.autoHidePerfect.SetText("Hide Perfectly clean repos")
@ -39,9 +42,6 @@ func globalDisplayOptions(box *gui.Node) {
}
})
groupvbox.NewButton("reposwin.Draw", func () {
reposwin.Draw()
})
groupvbox.NewButton("reposwin.Hide()", func () {
reposwin.Hide()
})

12
main.go
View File

@ -88,7 +88,7 @@ func autotypistWindow() {
// This creates a window
func repoworld() {
reposwin = gadgets.NewBasicWindow(myGui, "autotypist for GO & git. it types faster than you can.")
reposwin = gadgets.NewBasicWindow(myGui, "All git repositories in ~/go/src/")
reposwin.Make()
// reposwin.StandardExit()
@ -118,14 +118,4 @@ func repoworld() {
if ubranch == "" { ubranch = usr.Username }
addRepo(reposgrid, path, mbranch, dbranch, ubranch)
}
/*
box2 := reposwin.Box().NewBox("bw vbox", false)
globalDisplayOptions(box2)
globalBuildOptions(box2)
globalResetOptions(box2)
*/
// reposwin.Draw()
}

BIN
myrepos Executable file

Binary file not shown.