#!/bin/sh set -e LICENSE="$(cat LICENSE)" version="$(git log --format="%h %d" -1) $(go version) Build Date: $(date +%m.%d.%Y) Source code can be found here: https://git.riedstra.dev/go/dpw-ssm Source code for the dynamic password manager dpw can be found here: https://git.riedstra.dev/mitch/dpw $LICENSE" if ! git diff-index --quiet HEAD ; then version="dirty: $version" fi export CGO_ENABLED=0 go build -ldflags="-X 'main.VersionString=$version'" .