Compare commits

..

No commits in common. "master" and "v0.22.12" have entirely different histories.

5 changed files with 21 additions and 42 deletions

View File

@ -4,10 +4,8 @@ VERSION = $(shell git describe --tags)
BUILDTIME = $(shell date +%Y.%m.%d)
all: build
-rm -f go-gui*.deb
go-deb --gui andlabs gui
#./go-gui-toolkits
#ls -l ~/go/lib/go-gui/
./go-gui-toolkits
ls -l ~/go/lib/go-gui/
build: goimports
GO111MODULE=off go build \
@ -27,4 +25,3 @@ goimports:
clean:
rm -f ~/go/lib/go-gui/*.so
go-mod-clean purge

8
build
View File

@ -1,8 +1,6 @@
#!/bin/bash -x
rm -rf ~/go/lib/*
go-gui-toolkits
ls -lt ~/go/lib/
# make build
mkdir -p files/usr/lib/go-gui-toolkits
cp -a ~/go/lib/go-gui/*.so files/usr/lib/go-gui-toolkits/
mkdir -p files/usr/lib/go-gui
cp ~/go/lib/go-gui/*.so files/usr/lib/go-gui/

View File

@ -1,4 +1,3 @@
Package: go-gui-toolkits
Maintainer: Jeff Carr <jcarr@wit.com>
Depends:
Architecture: amd64

18
exit.go
View File

@ -1,18 +0,0 @@
package main
import (
"os"
"go.wit.com/log"
)
func okExit(thing string) {
log.Info(thing, "ok")
// log.Info("Finished go-clean on", check.GetGoPath(), "ok")
os.Exit(0)
}
func badExit(err error) {
log.Info("go-gui-toolkits failed: ", err)
os.Exit(-1)
}

29
main.go
View File

@ -2,26 +2,29 @@ package main
import (
"go.wit.com/lib/protobuf/forgepb"
"go.wit.com/log"
)
// go will sit here until the window exits
func main() {
forge := forgepb.Init()
all := forge.Repos.SortByGoPath()
for all.Scan() {
check := all.Next()
cmd := []string{"make", "install"}
if repo := forge.Repos.FindByNamespace("go.wit.com/toolkits/gocui"); repo != nil {
repo.RunVerbose(cmd)
}
repotype := check.RepoType()
if repotype != "plugin" {
continue
}
if repo := forge.Repos.FindByNamespace("go.wit.com/toolkits/andlabs"); repo != nil {
repo.RunVerbose(cmd)
}
if forge.Config.IsReadOnly(check.GoPath) {
// ignore read only stuff
continue
}
if repo := forge.Repos.FindByNamespace("go.wit.com/toolkits/nocui"); repo != nil {
repo.RunVerbose(cmd)
}
if repo := forge.Repos.FindByNamespace("go.wit.com/toolkits/fyne"); repo != nil {
repo.RunVerbose(cmd)
log.Info("STARTING 'make install' in", check.GoPath)
if err := forge.Install(check, nil); err != nil {
log.Warn("INSTALL FAILED", check.GoPath, err)
}
}
}