forked from cgrates/cgrates
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sh
executable file
·20 lines (16 loc) · 854 Bytes
/
build.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#! /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
cr=$?
go install -ldflags "-X 'github.com/cgrates/cgrates/utils.GitLastLog=$GIT_LAST_LOG'" github.com/cgrates/cgrates/cmd/cgr-loader
cl=$?
go install -ldflags "-X 'github.com/cgrates/cgrates/utils.GitLastLog=$GIT_LAST_LOG'" github.com/cgrates/cgrates/cmd/cgr-console
cc=$?
go install -ldflags "-X 'github.com/cgrates/cgrates/utils.GitLastLog=$GIT_LAST_LOG'" github.com/cgrates/cgrates/cmd/cgr-tester
ct=$?
exit $cr || $cl || $cc || $ct