mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 10:06:24 +05:00
Updated build script to check git tag
This commit is contained in:
committed by
Dan Christian Bogos
parent
9225cfffb2
commit
77e4ca7be7
7
build.sh
7
build.sh
@@ -3,6 +3,13 @@ echo "Building CGRateS ..."
|
||||
|
||||
GIT_LAST_LOG=$(git log -1 | tr -d "'")
|
||||
|
||||
GIT_TAG_LOG=$(git tag -l --points-at HEAD)
|
||||
|
||||
if [ ! -z "$GIT_TAG_LOG" ]
|
||||
then
|
||||
GIT_LAST_LOG=""
|
||||
fi
|
||||
|
||||
go install -ldflags "-X 'github.com/cgrates/cgrates/utils.GitLastLog=$GIT_LAST_LOG'" github.com/cgrates/cgrates/cmd/cgr-engine
|
||||
cr=$?
|
||||
go install -ldflags "-X 'github.com/cgrates/cgrates/utils.GitLastLog=$GIT_LAST_LOG'" github.com/cgrates/cgrates/cmd/cgr-loader
|
||||
|
||||
Reference in New Issue
Block a user