You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
675 B

GO111MODULE := on
tar: dist bin/rotochute dist/rotochute.json.example
mkdir dist/rotochute
cp bin/rotochute dist/rotochute/
cp dist/rotochute/
mv dist/rotochute.json.example dist/rotochute/
mv dist/rotochute "dist/rotochute-`bin/rotochute -version`"
cd dist && tar cvzf rotochute-`../bin/rotochute -version`.tar.gz rotochute-`../bin/rotochute -version`
cd dist && rm -r rotochute-`../bin/rotochute -version`
mkdir -p bin
bin/rotochute: bin go.mod main.go cache.go ticket.go config.go rt/rt.go
go build -o bin/rotochute
go test -v
mkdir -p dist
dist/rotochute.json.example: dist bin/rotochute
cd dist && ../bin/rotochute -example