compiles and runs
Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
parent
6a34c69970
commit
fea46f4c0a
17
Makefile
17
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)
|
||||
|
|
|
@ -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
12
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()
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue