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
|
all: build
|
||||||
myrepos
|
./myrepos
|
||||||
# ./myrepos >/tmp/myrepos.stderr 2>&1
|
|
||||||
|
stderr: build
|
||||||
|
echo "writing to /tmp/myrepos.stderr"
|
||||||
|
myrepos >/tmp/myrepos.stderr 2>&1
|
||||||
|
|
||||||
build:
|
build:
|
||||||
echo "build it!"
|
echo "build it!"
|
||||||
-mkdir -p resources/
|
-rm resources/*.so
|
||||||
-cp myrepolist resources/
|
go build -v -x
|
||||||
-cp ~/go/src/go.wit.com/gui/toolkits/*.so resources/
|
|
||||||
|
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
|
go install -v -x
|
||||||
|
myrepos
|
||||||
|
|
||||||
check-git-clean:
|
check-git-clean:
|
||||||
@git diff-index --quiet HEAD -- || (echo "Git repository is dirty, please commit your changes first"; exit 1)
|
@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)
|
groupvbox := group1.NewBox("bw vbox", false)
|
||||||
// grouphbox := groupvbox.NewBox("bw hbox", true)
|
// grouphbox := groupvbox.NewBox("bw hbox", true)
|
||||||
|
|
||||||
|
groupvbox.NewButton("Show Repository Window", func () {
|
||||||
|
reposwin.Draw()
|
||||||
|
})
|
||||||
me.autoHidePerfect = groupvbox.NewCheckbox("Hide repos")
|
me.autoHidePerfect = groupvbox.NewCheckbox("Hide repos")
|
||||||
me.autoHidePerfect.Custom = func() {
|
me.autoHidePerfect.Custom = func() {
|
||||||
me.autoHidePerfect.SetText("Hide Perfectly clean repos")
|
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 () {
|
groupvbox.NewButton("reposwin.Hide()", func () {
|
||||||
reposwin.Hide()
|
reposwin.Hide()
|
||||||
})
|
})
|
||||||
|
|
12
main.go
12
main.go
|
@ -88,7 +88,7 @@ func autotypistWindow() {
|
||||||
|
|
||||||
// This creates a window
|
// This creates a window
|
||||||
func repoworld() {
|
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.Make()
|
||||||
// reposwin.StandardExit()
|
// reposwin.StandardExit()
|
||||||
|
|
||||||
|
@ -118,14 +118,4 @@ func repoworld() {
|
||||||
if ubranch == "" { ubranch = usr.Username }
|
if ubranch == "" { ubranch = usr.Username }
|
||||||
addRepo(reposgrid, path, mbranch, dbranch, ubranch)
|
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