diff --git a/Makefile b/Makefile index 13d6988..5988ccd 100644 --- a/Makefile +++ b/Makefile @@ -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) diff --git a/globalDisplayOptions.go b/globalDisplayOptions.go index f2ba4a1..60c970b 100644 --- a/globalDisplayOptions.go +++ b/globalDisplayOptions.go @@ -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() }) diff --git a/main.go b/main.go index 4115f17..c161498 100644 --- a/main.go +++ b/main.go @@ -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() } diff --git a/myrepos b/myrepos new file mode 100755 index 0000000..0fa4ed5 Binary files /dev/null and b/myrepos differ