main: more specific default values for GitVersion etc

Now looks like this:

  $ ./gocryptfs -version
  gocryptfs [GitVersion not set - please compile using ./build.bash]; go-fuse [GitVersionFuse not set - please compile using ./build.bash]; 0000-00-00 go1.8

Hopefully easier to grep for.
This commit is contained in:
Jakob Unterwurzacher 2017-05-06 14:29:34 +02:00
parent a48893b653
commit cd10d0a6e4

View File

@ -28,13 +28,11 @@ const (
ErrExitMountPoint = 10
)
const pleaseBuildBash = "[not set - please compile using ./build.bash]"
// GitVersion is the gocryptfs version according to git, set by build.bash
var GitVersion = pleaseBuildBash
var GitVersion = "[GitVersion not set - please compile using ./build.bash]"
// GitVersionFuse is the go-fuse library version, set by build.bash
var GitVersionFuse = pleaseBuildBash
var GitVersionFuse = "[GitVersionFuse not set - please compile using ./build.bash]"
// BuildTime is the Unix timestamp, set by build.bash
var BuildTime = "0"