Compare commits
No commits in common. "master" and "v0.22.75" have entirely different histories.
7
Makefile
7
Makefile
|
@ -4,10 +4,8 @@ VERSION = $(shell git describe --tags)
|
||||||
BUILDTIME = $(shell date +%Y.%m.%d)
|
BUILDTIME = $(shell date +%Y.%m.%d)
|
||||||
|
|
||||||
all: build
|
all: build
|
||||||
-rm -f go-gui*.deb
|
./go-gui-toolkits
|
||||||
go-deb --gui andlabs gui
|
ls -l ~/go/lib/go-gui/
|
||||||
#./go-gui-toolkits
|
|
||||||
#ls -l ~/go/lib/go-gui/
|
|
||||||
|
|
||||||
build: goimports
|
build: goimports
|
||||||
GO111MODULE=off go build \
|
GO111MODULE=off go build \
|
||||||
|
@ -27,4 +25,3 @@ goimports:
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f ~/go/lib/go-gui/*.so
|
rm -f ~/go/lib/go-gui/*.so
|
||||||
go-mod-clean purge
|
|
||||||
|
|
4
build
4
build
|
@ -1,8 +1,6 @@
|
||||||
#!/bin/bash -x
|
#!/bin/bash -x
|
||||||
|
|
||||||
rm -rf ~/go/lib/*
|
# make build
|
||||||
go-gui-toolkits
|
|
||||||
ls -lt ~/go/lib/
|
|
||||||
|
|
||||||
mkdir -p files/usr/lib/go-gui-toolkits
|
mkdir -p files/usr/lib/go-gui-toolkits
|
||||||
cp -a ~/go/lib/go-gui/*.so files/usr/lib/go-gui-toolkits/
|
cp -a ~/go/lib/go-gui/*.so files/usr/lib/go-gui-toolkits/
|
||||||
|
|
1
control
1
control
|
@ -1,4 +1,3 @@
|
||||||
Package: go-gui-toolkits
|
|
||||||
Maintainer: Jeff Carr <jcarr@wit.com>
|
Maintainer: Jeff Carr <jcarr@wit.com>
|
||||||
Depends:
|
Depends:
|
||||||
Architecture: amd64
|
Architecture: amd64
|
||||||
|
|
18
exit.go
18
exit.go
|
@ -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)
|
|
||||||
}
|
|
23
main.go
23
main.go
|
@ -2,26 +2,29 @@ package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"go.wit.com/lib/protobuf/forgepb"
|
"go.wit.com/lib/protobuf/forgepb"
|
||||||
|
"go.wit.com/log"
|
||||||
)
|
)
|
||||||
|
|
||||||
// go will sit here until the window exits
|
// go will sit here until the window exits
|
||||||
func main() {
|
func main() {
|
||||||
forge := forgepb.Init()
|
forge := forgepb.Init()
|
||||||
|
all := forge.Repos.SortByFullPath()
|
||||||
|
for all.Scan() {
|
||||||
|
check := all.Next()
|
||||||
|
|
||||||
cmd := []string{"make", "install"}
|
repotype := check.GetRepoType()
|
||||||
if repo := forge.Repos.FindByNamespace("go.wit.com/toolkits/gocui"); repo != nil {
|
if repotype != "plugin" {
|
||||||
repo.RunVerbose(cmd)
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
if repo := forge.Repos.FindByNamespace("go.wit.com/toolkits/andlabs"); repo != nil {
|
if forge.Config.IsReadOnly(check.GetGoPath()) {
|
||||||
repo.RunVerbose(cmd)
|
// ignore read only stuff
|
||||||
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
if repo := forge.Repos.FindByNamespace("go.wit.com/toolkits/nocui"); repo != nil {
|
log.Info("STARTING 'make install' in", check.GetGoPath())
|
||||||
repo.RunVerbose(cmd)
|
if err := forge.Install(check, nil); err != nil {
|
||||||
|
log.Warn("INSTALL FAILED", check.GetGoPath(), err)
|
||||||
}
|
}
|
||||||
|
|
||||||
if repo := forge.Repos.FindByNamespace("go.wit.com/toolkits/fyne"); repo != nil {
|
|
||||||
repo.RunVerbose(cmd)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue