libgocryptfs/build.bash
Jakob Unterwurzacher 3f490d4d86 Bake version string into binary, add "--version" switch
Example:

	./gocryptfs -version
	gocryptfs v0.2-20-gabcef9e-dirty; on-disk format 1

Note that you MUST compile using "./build.bash" for this to work.
2015-11-01 14:04:29 +01:00

8 lines
140 B
Bash
Executable File

#!/bin/bash
set -eu
GITVERSION=$(git describe --tags --dirty)
go build -ldflags="-X main.GitVersion=$GITVERSION" && ./gocryptfs -version