summaryrefslogtreecommitdiff
path: root/build.bash
diff options
context:
space:
mode:
Diffstat (limited to 'build.bash')
-rwxr-xr-xbuild.bash4
1 files changed, 3 insertions, 1 deletions
diff --git a/build.bash b/build.bash
index 8d985d0..c4b7121 100755
--- a/build.bash
+++ b/build.bash
@@ -2,4 +2,6 @@
set -eu
-go build
+GITVERSION=$(git describe --tags --dirty)
+
+go build -ldflags="-X main.GitVersion=$GITVERSION" && ./gocryptfs -version