diff options
Diffstat (limited to 'build.sh')
-rwxr-xr-x | build.sh | 24 |
1 files changed, 17 insertions, 7 deletions
@@ -30,13 +30,21 @@ supported_machines=" \ usage() { - printf "%s <" "$0" - for machine in ${supported_machines} ; do - printf "${machine}|" - done - printf "\b>\n" - printf "%s all # build all machines\n" "$0" - exit 1 + printf "Usage:\n%s <" "$0" + for machine in ${supported_machines} ; do + printf "${machine}|" + done + printf "\b>\n" + printf "%s all # build all machines\n" "$0" + printf "%s machines # print all machines supported by this script\n" "$0" + exit 1 +} + +print_machines() +{ + for machine in ${supported_machines} ; do + printf "${machine}\n" + done } build() @@ -62,6 +70,8 @@ if [ "$1" = "all" ] ; then for machine in ${supported_machines} ; do build "${machine}" done +elif [ "$1" = "machines" ] ; then + print_machines else found=0 for machine in ${supported_machines} ; do |