mc: Fix release build flags after recent refactor. (#1794)

This commit is contained in:
Harshavardhana
2016-08-13 13:49:18 -07:00
committed by GitHub
parent c9c95f2e9e
commit f5ff7e15cf
12 changed files with 34 additions and 43 deletions
+5 -5
View File
@@ -1,7 +1,7 @@
// +build ignore
/*
* Mc Client (C) 2014, 2015 Mc, Inc.
* Mc Client (C) 2014, 2015, 2016 Minio, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -28,10 +28,10 @@ import (
func genLDFlags(version string) string {
var ldflagsStr string
ldflagsStr = "-X main.mcVersion=" + version + " "
ldflagsStr = ldflagsStr + "-X main.mcReleaseTag=" + releaseTag(version) + " "
ldflagsStr = ldflagsStr + "-X main.mcCommitID=" + commitID() + " "
ldflagsStr = ldflagsStr + "-X main.mcShortCommitID=" + commitID()[:12]
ldflagsStr = "-X github.com/minio/mc/command.MCVersion=" + version + " "
ldflagsStr = ldflagsStr + "-X github.com/minio/mc/command.MCReleaseTag=" + releaseTag(version) + " "
ldflagsStr = ldflagsStr + "-X github.com/minio/mc/command.MCCommitID=" + commitID() + " "
ldflagsStr = ldflagsStr + "-X github.com/minio/mc/command.MCShortCommitID=" + commitID()[:12]
return ldflagsStr
}