From 98b9a407a5be39f712f69dc759c0ae72bd6af231 Mon Sep 17 00:00:00 2001 From: Nimble Date: Sun, 12 Feb 2023 15:34:31 -0600 Subject: [PATCH] modified gitignored for bin and build script --- .gitignore | 2 ++ build.sh | 8 ++++++++ 2 files changed, 10 insertions(+) create mode 100644 build.sh diff --git a/.gitignore b/.gitignore index 5c6f71f..858e933 100644 --- a/.gitignore +++ b/.gitignore @@ -16,3 +16,5 @@ # store test data here test +# Compiled binaries +bin diff --git a/build.sh b/build.sh new file mode 100644 index 0000000..c97e8fb --- /dev/null +++ b/build.sh @@ -0,0 +1,8 @@ +#!/bin/sh +go build \ + -v \ + -trimpath \ + -ldflags="-linkmode=external -X main.version=${gmnhg_version}" \ + -o bin/ \ + ./cmd/gmnhg \ + ./cmd/md2gmn