Co-authored-by: hashicorp-copywrite[bot] <110428419+hashicorp-copywrite[bot]@users.noreply.github.com>
24 lines
701 B
Bash
Executable File
24 lines
701 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Copyright IBM Corp. 2020, 2025
|
|
# SPDX-License-Identifier: MPL-2.0
|
|
|
|
#
|
|
# This script builds the required plugins for all supported distributions.
|
|
set -e
|
|
|
|
# Get the parent directory of where this script is.
|
|
SOURCE="${BASH_SOURCE[0]}"
|
|
while [ -h "$SOURCE" ] ; do SOURCE="$(readlink "$SOURCE")"; done
|
|
export DIR="$( cd -P "$( dirname "$SOURCE" )/.." && pwd )"
|
|
|
|
platforms="darwin/arm64 darwin/amd64 freebsd/386 freebsd/amd64 freebsd/arm linux/386 linux/amd64 linux/arm linux/arm64 windows/386 windows/amd64"
|
|
|
|
cd $DIR/scripts;
|
|
for platform in ${platforms}
|
|
do
|
|
split=(${platform//\// })
|
|
goos=${split[0]}
|
|
goarch=${split[1]}
|
|
GOOS=${goos} GOARCH=${goarch} ./plugins.sh
|
|
done
|