mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 10:06:24 +05:00
Changed the build script and GetCGRVersion() to get the CommitDate instead of AuthorDate
This commit is contained in:
committed by
Dan Christian Bogos
parent
8273097670
commit
9cbee665b8
2
build.sh
2
build.sh
@@ -1,7 +1,7 @@
|
||||
#! /usr/bin/env sh
|
||||
echo "Building CGRateS ..."
|
||||
|
||||
GIT_LAST_LOG=$(git log -1 | tr -d "'")
|
||||
GIT_LAST_LOG=$(git log -1 --format=fuller | tr -d "'")
|
||||
|
||||
GIT_TAG_LOG=$(git tag -l --points-at HEAD)
|
||||
|
||||
|
||||
@@ -736,7 +736,7 @@ func GetCGRVersion() (vers string, err error) {
|
||||
commitHash = commitSplt[1]
|
||||
continue
|
||||
}
|
||||
if strings.HasPrefix(ln, "Date:") {
|
||||
if strings.HasPrefix(ln, "CommitDate:") {
|
||||
dateSplt := strings.Split(ln, ": ")
|
||||
if len(dateSplt) != 2 {
|
||||
return vers, fmt.Errorf("Building version - cannot split commit date")
|
||||
|
||||
Reference in New Issue
Block a user