Neater build.sh all

This commit is contained in:
Jakob Borg 2015-12-08 09:33:34 +01:00
parent 931408037c
commit ded0925155
1 changed files with 16 additions and 17 deletions

View File

@ -74,27 +74,26 @@ case "${1:-default}" in
;; ;;
all) all)
build -goos darwin -goarch amd64 tar platforms=(
darwin-amd64 dragonfly-amd64 freebsd-amd64 linux-amd64 netbsd-amd64 openbsd-amd64 solaris-amd64 windows-amd64
freebsd-386 linux-386 netbsd-386 openbsd-386 windows-386
linux-arm
)
build -goos dragonfly -goarch amd64 tar for plat in "${platforms[@]}"; do
echo Building "$plat"
build -goos freebsd -goarch 386 tar goos="${plat%-*}"
build -goos freebsd -goarch amd64 tar goarch="${plat#*-}"
dist="tar"
build -goos linux -goarch 386 tar if [[ $goos == "windows" ]]; then
build -goos linux -goarch amd64 tar dist="zip"
build -goos linux -goarch arm tar fi
build -goos netbsd -goarch 386 tar build -goos "$goos" -goarch "$goarch" "$dist"
build -goos netbsd -goarch amd64 tar echo
done
build -goos openbsd -goarch 386 tar
build -goos openbsd -goarch amd64 tar
build -goos solaris -goarch amd64 tar
build -goos windows -goarch 386 zip
build -goos windows -goarch amd64 zip
;; ;;
test-cov) test-cov)