summaryrefslogtreecommitdiff
path: root/resources/scripts/build/boot/roms
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2023-05-13 00:13:54 +0100
committerLeah Rowe <leah@libreboot.org>2023-05-13 00:13:54 +0100
commit3bd82b7679ae9af99caf4da1a81e4fde85f56a42 (patch)
tree5e4dc30653af27f7729b5383f7f90f12e0b2556f /resources/scripts/build/boot/roms
parent9eee0fb483e2abf9698ffc3a946304166ec9b1e9 (diff)
build/boot/roms: reduced code indentation
Diffstat (limited to 'resources/scripts/build/boot/roms')
-rwxr-xr-xresources/scripts/build/boot/roms80
1 files changed, 40 insertions, 40 deletions
diff --git a/resources/scripts/build/boot/roms b/resources/scripts/build/boot/roms
index 92bcc4c4..f0398273 100755
--- a/resources/scripts/build/boot/roms
+++ b/resources/scripts/build/boot/roms
@@ -36,53 +36,53 @@ firstoption="${1}"
main()
{
- if [ $# -gt 0 ]; then
- if [ "${firstoption}" = "help" ]; then
- usage
- exit 0
- fi
- if [ "${firstoption}" = "list" ]; then
- listboards
- exit 0
- fi
+ if [ $# -lt 1 ]; then
+ usage
+ exit 1
+ fi
- while [ $# -gt 0 ]; do
- case ${1} in
- -d)
- opts="${opts} -d ${2}"
- shift ;;
- -p)
- opts="${opts} -p ${2}"
- shift ;;
- -k)
- opts="${opts} -k ${2}"
- shift ;;
- *)
- boards="${boards} ${1} " ;;
- esac
- shift
- done
+ if [ "${firstoption}" = "help" ]; then
+ usage
+ exit 0
+ fi
+ if [ "${firstoption}" = "list" ]; then
+ listboards
+ exit 0
+ fi
+
+ while [ $# -gt 0 ]; do
+ case ${1} in
+ -d)
+ opts="${opts} -d ${2}"
+ shift ;;
+ -p)
+ opts="${opts} -p ${2}"
+ shift ;;
+ -k)
+ opts="${opts} -k ${2}"
+ shift ;;
+ *)
+ boards="${boards} ${1} " ;;
+ esac
+ shift
+ done
if [ -z ${opts+x} ]; then
opts=""
fi
- printf "Building %s ROM images\n" "${projectname}"
-
- if [ "${firstoption}" = "all" ]; then
- for boardname in $(listboards); do
- buildrom "${boardname}" \
- || die "build/roms: error"
- done
- else
- for board in ${boards}; do
- buildrom "${board}" \
- || die "build/roms: error"
- done
- fi
+ printf "Building %s ROM images\n" "${projectname}"
+
+ if [ "${firstoption}" = "all" ]; then
+ for boardname in $(listboards); do
+ buildrom "${boardname}" \
+ || die "build/roms: error"
+ done
else
- usage
- exit 1
+ for board in ${boards}; do
+ buildrom "${board}" \
+ || die "build/roms: error"
+ done
fi
printf "\n\nDone! Your ROMs are in bin/\n\n"