From e593207ecb85d653279839d495f3ed03c18262ed Mon Sep 17 00:00:00 2001 From: TeoV Date: Wed, 16 Aug 2017 06:04:05 -0400 Subject: [PATCH 1/3] Fix Versioning --- build.sh | 5 ----- 1 file changed, 5 deletions(-) diff --git a/build.sh b/build.sh index cb16ecaed..191adc414 100755 --- a/build.sh +++ b/build.sh @@ -1,11 +1,6 @@ #! /usr/bin/env sh echo "Building CGRateS ..." -go install github.com/cgrates/cgrates/cmd/cgr-engine -go install github.com/cgrates/cgrates/cmd/cgr-tester -go install github.com/cgrates/cgrates/cmd/cgr-console -go install github.com/cgrates/cgrates/cmd/cgr-loader - GIT_LAST_LOG=$(git log -1) go install -ldflags "-X 'github.com/cgrates/cgrates/utils.GitLastLog=$GIT_LAST_LOG'" github.com/cgrates/cgrates/cmd/cgr-engine From be50a1408b5f133623b6515f107cc9391c028e72 Mon Sep 17 00:00:00 2001 From: TeoV Date: Thu, 17 Aug 2017 05:54:39 -0400 Subject: [PATCH 2/3] Fix escaping characters on versioning --- build.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/build.sh b/build.sh index 191adc414..60344abeb 100755 --- a/build.sh +++ b/build.sh @@ -1,8 +1,10 @@ #! /usr/bin/env sh echo "Building CGRateS ..." +GIT_LAST_LOG=$(git log -1 | tr -d "'") + +echo $GIT_LAST_LOG -GIT_LAST_LOG=$(git log -1) 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 From dce0cab29f89740a92243536445adb3a603ea37c Mon Sep 17 00:00:00 2001 From: TeoV Date: Thu, 17 Aug 2017 05:56:33 -0400 Subject: [PATCH 3/3] Fix excaping characters on versioninv v2 --- build.sh | 2 -- 1 file changed, 2 deletions(-) diff --git a/build.sh b/build.sh index 60344abeb..5926d6277 100755 --- a/build.sh +++ b/build.sh @@ -3,8 +3,6 @@ echo "Building CGRateS ..." GIT_LAST_LOG=$(git log -1 | tr -d "'") -echo $GIT_LAST_LOG - 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