2024-01-31 14:25:19 -06:00
|
|
|
# to build by hand export GO111MODULE=off
|
|
|
|
|
2024-01-15 12:43:08 -06:00
|
|
|
all: build
|
2024-02-16 17:55:53 -06:00
|
|
|
reset
|
2024-02-21 08:32:59 -06:00
|
|
|
./submit-patchset
|
2024-02-16 17:55:53 -06:00
|
|
|
|
|
|
|
only-me: build
|
2024-01-23 11:22:33 -06:00
|
|
|
reset
|
2024-02-21 08:32:59 -06:00
|
|
|
./submit-patchset --only-me
|
2024-01-17 01:55:22 -06:00
|
|
|
|
|
|
|
stderr: build
|
2024-02-21 08:32:59 -06:00
|
|
|
echo "writing to /tmp/submit-patchset.log"
|
|
|
|
./submit-patchset >/tmp/submit-patchset.log 2>&1
|
2024-01-15 12:43:08 -06:00
|
|
|
|
2024-01-20 16:09:15 -06:00
|
|
|
goimports:
|
|
|
|
goimports -w *.go
|
|
|
|
# // to globally reset paths:
|
2024-02-07 15:24:59 -06:00
|
|
|
# // gofmt -w -r '"go.wit.com/gui/gadgets" -> "go.wit.com/lib/gadgets"' *.go
|
|
|
|
|
|
|
|
gocui: build
|
|
|
|
reset
|
2024-02-21 08:32:59 -06:00
|
|
|
./submit-patchset --gui gocui >/tmp/submit-patchset.log 2>&1
|
2024-01-20 16:09:15 -06:00
|
|
|
|
2024-01-15 12:43:08 -06:00
|
|
|
build:
|
2024-01-09 15:31:11 -06:00
|
|
|
echo "build it!"
|
2024-02-18 07:24:56 -06:00
|
|
|
GO111MODULE=off go build -v -x
|
2024-01-17 01:55:22 -06:00
|
|
|
|
|
|
|
install:
|
2024-01-15 08:11:08 -06:00
|
|
|
go install -v -x
|
2024-02-21 08:32:59 -06:00
|
|
|
submit-patchset
|
2024-01-09 01:16:00 -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-01-09 01:16:00 -06:00
|
|
|
|