Compare commits
7 Commits
Author | SHA1 | Date |
---|---|---|
|
b3f63523b4 | |
|
3b559eff7e | |
|
b46996bac2 | |
|
8e67e31bbe | |
|
b3dc0e265e | |
|
953a1cd5d5 | |
|
7396af67a1 |
7
Makefile
7
Makefile
|
@ -4,8 +4,10 @@ VERSION = $(shell git describe --tags)
|
||||||
BUILDTIME = $(shell date +%Y.%m.%d)
|
BUILDTIME = $(shell date +%Y.%m.%d)
|
||||||
|
|
||||||
all: build
|
all: build
|
||||||
./go-gui-toolkits
|
-rm -f go-gui*.deb
|
||||||
ls -l ~/go/lib/go-gui/
|
go-deb --gui andlabs gui
|
||||||
|
#./go-gui-toolkits
|
||||||
|
#ls -l ~/go/lib/go-gui/
|
||||||
|
|
||||||
build: goimports
|
build: goimports
|
||||||
GO111MODULE=off go build \
|
GO111MODULE=off go build \
|
||||||
|
@ -25,3 +27,4 @@ goimports:
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f ~/go/lib/go-gui/*.so
|
rm -f ~/go/lib/go-gui/*.so
|
||||||
|
go-mod-clean purge
|
||||||
|
|
8
build
8
build
|
@ -1,6 +1,8 @@
|
||||||
#!/bin/bash -x
|
#!/bin/bash -x
|
||||||
|
|
||||||
# make build
|
rm -rf ~/go/lib/*
|
||||||
|
go-gui-toolkits
|
||||||
|
ls -lt ~/go/lib/
|
||||||
|
|
||||||
mkdir -p files/usr/lib/go-gui
|
mkdir -p files/usr/lib/go-gui-toolkits
|
||||||
cp ~/go/lib/go-gui/*.so files/usr/lib/go-gui/
|
cp -a ~/go/lib/go-gui/*.so files/usr/lib/go-gui-toolkits/
|
||||||
|
|
1
control
1
control
|
@ -1,3 +1,4 @@
|
||||||
|
Package: go-gui-toolkits
|
||||||
Maintainer: Jeff Carr <jcarr@wit.com>
|
Maintainer: Jeff Carr <jcarr@wit.com>
|
||||||
Depends:
|
Depends:
|
||||||
Architecture: amd64
|
Architecture: amd64
|
||||||
|
|
|
@ -0,0 +1,18 @@
|
||||||
|
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,29 +2,26 @@ 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.SortByGoPath()
|
|
||||||
for all.Scan() {
|
|
||||||
check := all.Next()
|
|
||||||
|
|
||||||
repotype := check.RepoType()
|
cmd := []string{"make", "install"}
|
||||||
if repotype != "plugin" {
|
if repo := forge.Repos.FindByNamespace("go.wit.com/toolkits/gocui"); repo != nil {
|
||||||
continue
|
repo.RunVerbose(cmd)
|
||||||
}
|
}
|
||||||
|
|
||||||
if forge.Config.IsReadOnly(check.GoPath) {
|
if repo := forge.Repos.FindByNamespace("go.wit.com/toolkits/andlabs"); repo != nil {
|
||||||
// ignore read only stuff
|
repo.RunVerbose(cmd)
|
||||||
continue
|
|
||||||
}
|
}
|
||||||
|
|
||||||
log.Info("STARTING 'make install' in", check.GoPath)
|
if repo := forge.Repos.FindByNamespace("go.wit.com/toolkits/nocui"); repo != nil {
|
||||||
if err := forge.Install(check, nil); err != nil {
|
repo.RunVerbose(cmd)
|
||||||
log.Warn("INSTALL FAILED", check.GoPath, err)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if repo := forge.Repos.FindByNamespace("go.wit.com/toolkits/fyne"); repo != nil {
|
||||||
|
repo.RunVerbose(cmd)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue