File: build_windows.sh

package info (click to toggle)
golang-github-containernetworking-plugins 1.1.1%2Bds1-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid, trixie
  • size: 1,672 kB
  • sloc: sh: 132; makefile: 11
file content (15 lines) | stat: -rwxr-xr-x 332 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/usr/bin/env bash
set -e
cd "$(dirname "$0")"

export GO="${GO:-go}"
export GOOS=windows
export GOFLAGS="${GOFLAGS} -mod=vendor"
echo "$GOFLAGS"

PLUGINS=$(cat plugins/windows_only.txt | dos2unix )
for d in $PLUGINS; do
	plugin="$(basename "$d").exe"
	echo "building $plugin"
	$GO build -o "${PWD}/bin/$plugin" "$@" ./"${d}"
done