Modify the build script

This commit is contained in:
Jared Jacobson 2021-09-13 11:16:33 +10:00
parent 03220ccc56
commit 6af0e71729

View file

@ -2,20 +2,7 @@
# Put installed packages into ./bin # Put installed packages into ./bin
export GOBIN=$PWD/`dirname $0`/bin export GOBIN=$PWD/`dirname $0`/bin
if [ -d ".git" ]
then
export BUILD=`git rev-parse --short HEAD || ""`
export BRANCH=`(git symbolic-ref --short HEAD | tr -d \/ ) || ""`
if [ "$BRANCH" = master ]
then
export BRANCH=""
fi
export FLAGS="-X github.com/matrix-org/dendrite/internal.branch=$BRANCH -X github.com/matrix-org/dendrite/internal.build=$BUILD"
else
export FLAGS="" export FLAGS=""
fi
mkdir -p bin mkdir -p bin