Version is now based on MD5SUM of its binary

This commit is contained in:
Anand Babu (AB) Periasamy
2015-04-24 21:49:07 -07:00
parent 5b0591ffad
commit b010fd0ff3
4 changed files with 33 additions and 21 deletions

View File

@@ -1,18 +0,0 @@
#!/usr/bin/env bash
CONST_FILE=build-constants.go
cat > $CONST_FILE <<EOF
/*
* ** DO NOT EDIT THIS FILE. THIS FILE IS AUTO GENERATED BY RUNNING MAKE **
*/
package main
const (
minioGitCommitHash = "__GIT_COMMIT_HASH__"
)
EOF
commit_id=$(git log --format="%H" -n 1)
sed -i "s/__GIT_COMMIT_HASH__/$commit_id/" $CONST_FILE