#!/bin/bash

cd cli/venom
for GOOS in windows darwin linux freebsd solaris; do
    for GOARCH in 386 amd64 arm; do
        if [[ $GOARCH == "arm" && $GOOS != "linux" ]]; then
          continue;
        fi;
        architecture="${GOOS}-${GOARCH}"
        echo "Building ${architecture} ${path}"
        export GOOS=$GOOS
        export GOARCH=$GOARCH
        go build -ldflags "-X github.com/ovh/venom/cli/venom/update.architecture=${architecture}" -o bin/venom-${architecture}
    done
done

#!/bin/bash

cd cli/venom
for DIST in `go tool dist list | grep -v '^android/' | grep -v '^nacl/' | grep -v '^plan9/' | grep -v '^darwin/arm'`; do
    GOOS=`echo ${DIST} | cut -d / -f 1`
    GOARCH=`echo ${DIST} | cut -d / -f 2`

    architecture="${GOOS}-${GOARCH}"
    echo "Building ${architecture} ${path}"
    export GOOS=$GOOS
    export GOARCH=$GOARCH
    go build -ldflags "-X github.com/ovh/venom/cli/venom/update.architecture=${architecture}" -o bin/venom.${architecture}
done

Remove spurious output in the build about solaris/386 not being supported.
Remove spurious output in the build about solaris/386 not being supported.

Only `solaris/amd64` is supported.  This will help keep the build output
clean.

Use of chained `grep(1)` vs something like `egrep -ve` was for portability.
