Created
March 10, 2014 02:20
-
-
Save hayajo/9458455 to your computer and use it in GitHub Desktop.
Go言語のソースインストールで他のOS/Archをサポートするスクリプト
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
declare -A targets | |
targets["darwin"]="386 arm64 arm" | |
targets["linux"]="386 arm64" | |
targets["windows"]="386 arm64" | |
for os in ${!targets[@]}; do | |
OIFS="$IFS"; IFS=' ' | |
archs=(${targets[$os]}) | |
IFS="$OIFS" | |
for arch in ${archs[@]}; do | |
# GOOS=$os GOARCH=$arch $@ | |
GOOS=$os GOARCH=$arch ./make.bash --no-clean | |
done | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
便利そうなのがすでにあった