Debian Codegraph @

build_linux.sh

raw symbols SCIP
1 #!/usr/bin/envscip-shell filesystem . . `/usr/bin/env`. sh
2 set -e
3 cd "$(dirnamescip-shell system . . dirname. "$0")"
4
5 if [scip-shell system . . `[`. "$(unamescip-shell system . . uname.)" = "Darwin" ]; then
6 export GOOS="${GOOS:-linux}"
7 fi
8
9 export GOFLAGS="${GOFLAGS} -mod=vendor"
10
11 mkdirscip-shell system . . mkdir. -p "${PWD}/bin"
12
13 echoscip-shell system . . echo. "Building plugins ${GOOS}"
14 PLUGINS="plugins/meta/* plugins/main/* plugins/ipam/*"
15 for d in $PLUGINS; do
16 if [scip-shell system . . `[`. -d "$d" ]; then
17 plugin="$(basenamescip-shell system . . basename. "$d")"
18 if [scip-shell system . . `[`. "${plugin}" != "windows" ]; then
19 echoscip-shell system . . echo. " $plugin"
20 ${GO:-go} build -o "${PWD}/bin/$plugin" "$@" ./"$d"
21 fi
22 fi
23 done