From 7ea49a4869751f93172f276737d094e55121a08d Mon Sep 17 00:00:00 2001 From: Mitch Riedstra Date: Sun, 22 Sep 2019 06:19:25 -0400 Subject: Add a build script, go mod file and update the readme --- build.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 build.sh (limited to 'build.sh') diff --git a/build.sh b/build.sh new file mode 100755 index 0000000..0f5b244 --- /dev/null +++ b/build.sh @@ -0,0 +1,9 @@ +#!/bin/sh +set -e +set -x + +export CGO_ENABLED=0 +go build \ + -o hook \ + -ldflags '-X "main.versionString='"$(git log --pretty=format:"%D %h %an %aD" -n 1)"'"' \ + main.go -- cgit v1.2.3