2024-02-28 22:01:32 -06:00
|
|
|
VERSION = $(shell git describe --tags)
|
2024-11-16 00:07:53 -06:00
|
|
|
BUILDTIME = $(shell date +%Y.%m.%d)
|
2024-02-28 22:01:32 -06:00
|
|
|
|
2024-11-16 00:07:53 -06:00
|
|
|
all: build
|
2024-01-15 12:43:08 -06:00
|
|
|
|
2024-01-20 16:09:15 -06:00
|
|
|
goimports:
|
|
|
|
goimports -w *.go
|
|
|
|
# // to globally reset paths:
|
|
|
|
# // gofmt -w -r "go.wit.com/gui -> go.wit.com/gui/gui" .
|
|
|
|
|
2024-03-03 11:53:33 -06:00
|
|
|
vet:
|
|
|
|
GO111MODULE=off go vet
|
|
|
|
|
2024-01-15 12:43:08 -06:00
|
|
|
build:
|
2024-01-09 15:31:11 -06:00
|
|
|
echo "build it!"
|
2024-11-07 03:10:21 -06:00
|
|
|
-rm resources/*.so
|
|
|
|
cp -a ~/go/src/go.wit.com/toolkits/*.so resources/
|
2024-11-16 00:07:53 -06:00
|
|
|
GO111MODULE=off go build \
|
|
|
|
-ldflags "-X main.VERSION=${VERSION} -X main.BUILDTIME=${BUILDTIME} -X gui.GUIVERSION=${VERSION}"
|
2024-01-17 01:55:22 -06:00
|
|
|
|
|
|
|
install:
|
2024-11-07 03:10:21 -06:00
|
|
|
-rm resources/*.so
|
|
|
|
cp -a ~/go/src/go.wit.com/toolkits/*.so resources/
|
2024-11-16 00:07:53 -06:00
|
|
|
GO111MODULE=off go install \
|
|
|
|
-ldflags "-X main.VERSION=${VERSION} -X main.BUILDTIME=${BUILDTIME} -X gui.GUIVERSION=${VERSION}"
|
2024-01-09 01:16:00 -06:00
|
|
|
|
2024-11-13 17:03:03 -06:00
|
|
|
test: build
|
2024-11-13 17:45:51 -06:00
|
|
|
GUIRELEASE_REASON='test build' ./guireleaser
|
2024-11-13 17:03:03 -06:00
|
|
|
|
2024-01-15 22:56:21 -06:00
|
|
|
check-git-clean:
|
|
|
|
@git diff-index --quiet HEAD -- || (echo "Git repository is dirty, please commit your changes first"; exit 1)
|
|
|
|
|
2024-01-09 01:16:00 -06:00
|
|
|
redomod:
|
|
|
|
rm -f go.*
|
2024-01-09 09:35:54 -06:00
|
|
|
GO111MODULE= go mod init
|
|
|
|
GO111MODULE= go mod tidy
|
2024-11-04 08:16:42 -06:00
|
|
|
|
|
|
|
curl-help:
|
|
|
|
curl --silent http://localhost:9419/help
|
|
|
|
|
2024-11-13 18:24:58 -06:00
|
|
|
tempWin:
|
2024-11-05 01:44:24 -06:00
|
|
|
curl --silent http://localhost:9419/tempWin
|
|
|
|
|
2024-11-05 04:46:59 -06:00
|
|
|
curl-rescan-All:
|
|
|
|
curl --silent http://localhost:9419/rescanAll
|
|
|
|
|
|
|
|
curl-whitelist-stuff:
|
2024-11-05 03:17:40 -06:00
|
|
|
curl --silent http://localhost:9419/whitelist?repo=go.wit.com/dev/test/gogit2
|
2024-11-05 04:46:59 -06:00
|
|
|
curl --silent http://localhost:9419/whitelist?repo=git.wit.org/jcarr/clone-gitea
|
2024-11-05 03:17:40 -06:00
|
|
|
|
2024-11-04 08:16:42 -06:00
|
|
|
curl-setBranchesToMasterB:
|
|
|
|
curl --silent http://localhost:9419/setBranchesToMasterB
|
|
|
|
|
|
|
|
# report on the release
|
2024-11-05 05:57:59 -06:00
|
|
|
findNext:
|
2024-11-04 08:16:42 -06:00
|
|
|
curl --silent http://localhost:9419/findNext
|
|
|
|
|
2024-11-05 05:57:59 -06:00
|
|
|
showNext:
|
2024-11-04 13:24:46 -06:00
|
|
|
curl --silent http://localhost:9419/showNext
|
|
|
|
|
2024-11-05 04:46:59 -06:00
|
|
|
doRelease:
|
2024-11-07 02:16:05 -06:00
|
|
|
reset
|
2024-11-05 07:35:17 -06:00
|
|
|
make curl-list-changed
|
2024-11-05 05:57:59 -06:00
|
|
|
make showNext
|
2024-11-05 04:46:59 -06:00
|
|
|
sleep 10
|
2024-11-05 01:44:24 -06:00
|
|
|
curl --silent http://localhost:9419/doRelease
|
|
|
|
|
2024-11-05 05:57:59 -06:00
|
|
|
curl-setCurrent-go-wit-com-gui:
|
|
|
|
curl --silent http://localhost:9419/setCurrentRepo?repo=go.wit.com/gui
|
|
|
|
|
2024-11-05 01:44:24 -06:00
|
|
|
curl-setTargetVersion-virtigo-v0.1.1:
|
|
|
|
curl --silent http://localhost:9419/setTargetVersion?version=v0.1.1
|
|
|
|
|
|
|
|
curl-incrementAllTargetVersions:
|
|
|
|
curl --silent http://localhost:9419/setAllTargetVersions
|
2024-11-04 13:24:46 -06:00
|
|
|
|
2024-11-04 08:16:42 -06:00
|
|
|
# report on the release
|
2024-11-13 12:29:53 -06:00
|
|
|
list-release-notdone:
|
2024-11-05 01:44:24 -06:00
|
|
|
curl --silent http://localhost:9419/releaseList?readonly=true
|
2024-11-04 08:16:42 -06:00
|
|
|
|
|
|
|
# only show repos that need to be merged to the master branch
|
|
|
|
curl-list-changed:
|
|
|
|
curl --silent http://localhost:9419/list?perfect=false
|
|
|
|
|
|
|
|
# include repos that you probably can't git push commits
|
2024-11-05 04:46:59 -06:00
|
|
|
curl-list-everything:
|
2024-11-04 08:16:42 -06:00
|
|
|
curl --silent http://localhost:9419/list?readonly=true
|
2024-11-05 04:46:59 -06:00
|
|
|
|
|
|
|
curl-file-for-go.wit.com:
|
|
|
|
curl --silent http://localhost:9419/goweblist?readonly=true
|
|
|
|
curl --silent http://localhost:9419/goweblist?readonly=true |sort > ~/go.wit.com.versions
|