File: build.sh

package info (click to toggle)
golang-github-containernetworking-plugins 0.9.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 1,448 kB
  • sloc: sh: 124; makefile: 13
file content (13 lines) | stat: -rwxr-xr-x 308 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/usr/bin/env bash
set -e

PLUGINS=$(cat plugins/windows_only.txt)
for d in $PLUGINS; do
	if [ -d "$d" ]; then
	    plugin="$(basename "$d").exe"

		echo "  $plugin"
		CXX=x86_64-w64-mingw32-g++ CC=x86_64-w64-mingw32-gcc CGO_ENABLED=1 \
		    $GO build -o "${PWD}/bin/$plugin" "$@" "$REPO_PATH"/$d
	fi
done