diff options
| author | Leah Rowe <leah@libreboot.org> | 2023-05-15 00:22:54 +0100 | 
|---|---|---|
| committer | Leah Rowe <leah@libreboot.org> | 2023-05-15 00:22:54 +0100 | 
| commit | 7a6f40fcbf01607714b92cca025a40ec6798a055 (patch) | |
| tree | f53463f8af13241f4e4ff5a0b6ac39ae193c93a2 /resources/scripts | |
| parent | fd8b8084ee8b6785c342d16db9f49c059672e8f0 (diff) | |
download/coreboot: top-down re-ordering
main first
usage last
Diffstat (limited to 'resources/scripts')
| -rwxr-xr-x | resources/scripts/download/coreboot | 38 | 
1 files changed, 19 insertions, 19 deletions
| diff --git a/resources/scripts/download/coreboot b/resources/scripts/download/coreboot index f9f6bcbe..514e6f38 100755 --- a/resources/scripts/download/coreboot +++ b/resources/scripts/download/coreboot @@ -68,25 +68,6 @@ main()  	exit 0  } -list_supported_boards() -{ -	for board in resources/coreboot/*; do -		echo $board | sed 's#resources/coreboot/##' -	done -} - -usage() -{ -	progname="./download coreboot" -	printf "Usage:\n" -	printf "\t%s\t\t\t# Clone coreboot for all boards\n" "${progname}" -	printf "\t%s [board [board] ...] # Clone coreboot for given boards\n" \ -			${progname} -	printf "\t%s --list-boards\t# Prints this help\n" ${progname} -	printf "\t%s --help\t\t# List supported boards\n" ${progname} -	printf "\t%s --help\t\t# Prints this help\n" ${progname} -} -  downloadfor() {  	board="${1}" @@ -259,4 +240,23 @@ downloadfor() {  	fi  } +usage() +{ +	progname="./download coreboot" +	printf "Usage:\n" +	printf "\t%s\t\t\t# Clone coreboot for all boards\n" "${progname}" +	printf "\t%s [board [board] ...] # Clone coreboot for given boards\n" \ +			${progname} +	printf "\t%s --list-boards\t# Prints this help\n" ${progname} +	printf "\t%s --help\t\t# List supported boards\n" ${progname} +	printf "\t%s --help\t\t# Prints this help\n" ${progname} +} + +list_supported_boards() +{ +	for board in resources/coreboot/*; do +		echo $board | sed 's#resources/coreboot/##' +	done +} +  main $@ | 
