-
Notifications
You must be signed in to change notification settings - Fork 971
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #609 from k82cn/vc_449
Fixed build error of release-pkg.
- Loading branch information
Showing
6 changed files
with
50 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
|
||
# If tag not explicitly set in users default to the git sha. | ||
TAG ?= $(shell git rev-parse --verify HEAD) | ||
GitSHA=`git rev-parse HEAD` | ||
Date=`date "+%Y-%m-%d %H:%M:%S"` | ||
LD_FLAGS=" \ | ||
-X '${REPO_PATH}/pkg/version.GitSHA=${GitSHA}' \ | ||
-X '${REPO_PATH}/pkg/version.Built=${Date}' \ | ||
-X '${REPO_PATH}/pkg/version.Version=${RELEASE_VER}'" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
|
||
# If tag not explicitly set in users default to the git sha. | ||
TAG ?= $(shell git rev-parse --verify HEAD) | ||
GitSHA=`git rev-parse HEAD` | ||
Date=`date "+%Y-%m-%d %H:%M:%S"` | ||
LD_FLAGS=" \ | ||
-X '${REPO_PATH}/pkg/version.GitSHA=${GitSHA}' \ | ||
-X '${REPO_PATH}/pkg/version.Built=${Date}' \ | ||
-X '${REPO_PATH}/pkg/version.Version=${RELEASE_VER}'" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
|
||
# If tag not explicitly set in users default to the git sha. | ||
TAG=__release_ver__ | ||
GitSHA=__git_sha__ | ||
Date=`date "+%Y-%m-%d %H:%M:%S"` | ||
LD_FLAGS=" \ | ||
-X '${REPO_PATH}/pkg/version.GitSHA=${GitSHA}' \ | ||
-X '${REPO_PATH}/pkg/version.Built=${Date}' \ | ||
-X '${REPO_PATH}/pkg/version.Version=${RELEASE_VER}'" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/bin/bash | ||
|
||
ENV=$1 | ||
|
||
GitSHA=`git rev-parse HEAD` | ||
|
||
cp defs/Makefile.${ENV}.def Makefile.def | ||
|
||
sed -i "s/__git_sha__/"${GitSHA}"/g" Makefile.def | ||
sed -i "s/__release_ver__/"${RELEASE_VER}"/g" Makefile.def |