This repository has been archived on 2025-09-28. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
ass/build.sh

10 lines
184 B
Bash
Executable file

#!/usr/bin/env bash
ver="$(git rev-parse --short HEAD)"
if ! git diff-index --quiet HEAD
then
ver="${ver}-dev"
fi
go build -ldflags="-X 'main.Version=${ver}'" -o ass_v${ver} $@