Skip to content

Commit

Permalink
rename BUILDVER from VERSION
Browse files Browse the repository at this point in the history
  • Loading branch information
puellanivis committed Sep 26, 2019
1 parent 09c11e2 commit 2d44a0a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions masher/mash.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ while [[ "$#" -gt 0 ]]; do
export GOCACHE="$val"
;;
--buildver=*)
VERSION="$val"
BUILDVER="$val"
;;
--timestamp=*)
TIMESTAMP="$val"
Expand Down Expand Up @@ -192,8 +192,8 @@ PROJECT="${PWD##*/}"
if [[ -n $BUILDSTAMP ]]; then
DEPS=$( go list -f "{{.Deps}}" | grep -c -e "\<lib/util\>" )
LDFLAGS="-ldflags=-X main.VersionBuild=$BUILDSTAMP -X main.Buildstamp=$BUILDSTAMP"
if [[ $VERSION != "" ]]; then
LDFLAGS="$LDFLAGS -X main.Version=$VERSION"
if [[ $BUILDVER != "" ]]; then
LDFLAGS="$LDFLAGS -X main.Version=$BUILDVER"
fi
if [[ $DEPS -ne 0 ]]; then
LDFLAGS="$LDFLAGS -X github.com/puellanivis/breton/lib/util.BUILD=$BUILDSTAMP"
Expand Down

0 comments on commit 2d44a0a

Please sign in to comment.