mark2web/build.sh

6 lines
258 B
Bash
Raw Normal View History

2019-02-18 13:05:30 +01:00
#!/bin/sh
2019-02-20 09:02:54 +01:00
mkdir -p dist
2019-03-18 13:34:52 +01:00
go build -v -ldflags "-X main.Version=`git describe --tags --long` -X main.GitHash=`git rev-parse HEAD` -X main.BuildTime=`date -u '+%Y-%m-%d_%I:%M:%S%p'`" -o dist/mark2web-`cat VERSION`-${GOOS}-${GOARCH}${FILEEXT} mark2web/main.go