1. updated build

This commit is contained in:
vadym 2021-09-12 18:31:20 +03:00
parent f078cd21be
commit e64998629c

7
build
View file

@ -5,8 +5,11 @@ set -ef
PKGSRC=${PKGSRC:-github.com/RiV-chain/RiV-mesh/src/version} PKGSRC=${PKGSRC:-github.com/RiV-chain/RiV-mesh/src/version}
PKGNAME=${PKGNAME:-$(sh contrib/semver/name.sh)} PKGNAME=${PKGNAME:-$(sh contrib/semver/name.sh)}
PKGVER=${PKGVER:-$(sh contrib/semver/version.sh --bare)} PKGVER=${PKGVER:-$(sh contrib/semver/version.sh --bare)}
if [ $LDFLAGS ]; then
LDFLAGS="-X $PKGSRC.buildName=$PKGNAME -X $PKGSRC.buildVersion=$PKGVER" LDFLAGS="$LDFLAGS -X $PKGSRC.buildName=$PKGNAME -X $PKGSRC.buildVersion=$PKGVER"
else
LDFLAGS="-X $PKGSRC.buildName=$PKGNAME -X $PKGSRC.buildVersion=$PKGVER"
fi
ARGS="-v" ARGS="-v"
while getopts "uaitc:l:dro:p" option while getopts "uaitc:l:dro:p" option