Support building specific architectures.

This commit is contained in:
Harshavardhana 2016-12-27 17:52:24 -08:00
parent ee0172dfe4
commit f9025652df
1 changed files with 4 additions and 2 deletions

View File

@ -70,12 +70,14 @@ main() {
done
read -p "If you want to build for all, Just press Enter: " chosen_osarch
if [ "$chosen_osarch" = "" ]; then
if [ "$chosen_osarch" = "" ] || [ "$chosen_osarch" = "all" ]; then
for each_osarch in ${SUPPORTED_OSARCH}; do
go_build ${each_osarch}
done
else
go_build ${chosen_osarch}
for each_osarch in $(echo $chosen_osarch | sed 's/,/ /g'); do
go_build ${each_osarch}
done
fi
}