mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-18 03:21:01 +02:00
use the new coding style in scripts
there were stragglers left over from the last audit, and these stragglers still exist even after all the major re-factoring as of late the new style is: bsd-like coding style and error handling. verbose yet simple error handling. we use an "err" function in a way reminiscent of most C programs that you see in openbsd base (err.h) this style is very clean, resulting in readable code Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
@@ -29,9 +29,14 @@ main()
|
||||
printf "Cleaning crossgcc builds in all coreboot archives\n"
|
||||
[ ! -d "coreboot/" ] && exit 0
|
||||
|
||||
clean_crossgcc
|
||||
}
|
||||
|
||||
clean_crossgcc()
|
||||
{
|
||||
for board in coreboot/*; do
|
||||
[ -d "${board}" ] || continue
|
||||
[ "${board##*/}" = "coreboot" ] && continue
|
||||
[ ! -d "${board}" ] && continue
|
||||
make -C "${board}/" crossgcc-clean || err "make-clean"
|
||||
done
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user