Skip to content

Commit

Permalink
Merge pull request sequelize#447 from exercism/nextercism-alt-binname
Browse files Browse the repository at this point in the history
[nextercism] Handle alternate binary name in build script
  • Loading branch information
Tonkpils committed Aug 16, 2017
2 parents 6ee349e + d208cac commit 91b98e2
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions bin/build-all
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ OSVAR=github.com/exercism/cli/cmd.BuildOS
ARCHVAR=github.com/exercism/cli/cmd.BuildARCH
ARMVAR=github.com/exercism/cli/cmd.BuildARM

# handle alternate binary name for pre-releases
BINNAME=${NAME:-exercism}

createRelease() {
os=$1
arch=$2
Expand Down Expand Up @@ -39,13 +42,13 @@ createRelease() {
ldflags="$ldflags -X $ARMVAR=8"
fi

binname=exercism
binname=$BINNAME
if [ "$osname" = windows ]
then
binname="$binname.exe"
fi

relname="../release/exercism-$osname-$osarch"
relname="../release/$BINNAME-$osname-$osarch"
echo "Creating $os/$arch binary..."

if [ "$arm" ]
Expand Down

0 comments on commit 91b98e2

Please sign in to comment.