File: compileall.sh

package info (click to toggle)
golang-github-a8m-tree 0.0~git20171213.cf42b1e-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 140 kB
  • sloc: sh: 11; makefile: 5
file content (14 lines) | stat: -rwxr-xr-x 324 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/bash

go tool dist list >/dev/null || {
    echo 1>&2 "go tool dist list not supported - can't check compile"
    exit 0
}

while read -r line; do
    parts=(${line//\// })
    export GOOS=${parts[0]}
    export GOARCH=${parts[1]}
    echo Try GOOS=${GOOS} GOARCH=${GOARCH}
    go install
done < <(go tool dist list)