blob: 1320fdfdbcea5b6c0d9f784e5b77f9536dae01d8 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#!/bin/sh
set -e
LICENSE="$(cat LICENSE)"
version="$(git log --format="%h %d" -1)
Source code can be found here:
https://git.riedstra.us/mitch/go-website.git
$LICENSE"
if ! git diff-index --quiet HEAD ; then
version="dirty: $version"
fi
go build -ldflags="-X 'main.VersionString=$version'" ./cmd/server
|