From 62bd44f8732df70eabe6337d11ec511cc306879f Mon Sep 17 00:00:00 2001 From: Sreeram Boyapati Date: Fri, 11 Mar 2016 10:17:56 +0530 Subject: [PATCH] buildscripts: Enable user to choose an arch to build - Building minio for all architectures takes a lot of time. Choose the one user needs --- buildscripts/build.sh | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/buildscripts/build.sh b/buildscripts/build.sh index ca9343093..1fd07a663 100755 --- a/buildscripts/build.sh +++ b/buildscripts/build.sh @@ -39,9 +39,20 @@ go_build() { main() { # Build releases. echo "Executing $release_str builds for OS: ${SUPPORTED_OSARCH}" + echo "Choose an OS Arch from the below" for osarch in ${SUPPORTED_OSARCH}; do - go_build ${osarch} + echo ${osarch} done + + read -p "If you want to build for all, Just press Enter: " chosen_osarch + if [ "$chosen_osarch" = "" ]; then + for each_osarch in ${SUPPORTED_OSARCH}; do + go_build ${each_osarch} + done + else + go_build ${chosen_osarch} + fi + } # Run main.