Skip to content

Instantly share code, notes, and snippets.

@hayajo
Created March 10, 2014 02:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hayajo/9458455 to your computer and use it in GitHub Desktop.
Save hayajo/9458455 to your computer and use it in GitHub Desktop.
Go言語のソースインストールで他のOS/Archをサポートするスクリプト
#!/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
@hayajo
Copy link
Author

hayajo commented Mar 10, 2014

便利そうなのがすでにあった

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment