mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-21 10:12:04 +02:00
build/clean/crossgcc: better code style
Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
# helper script: clean the crossgcc builds
|
# helper script: clean the crossgcc builds
|
||||||
#
|
#
|
||||||
# Copyright (C) 2014, 2015, 2016, 2020 Leah Rowe <info@minifree.org>
|
# Copyright (C) 2014-2016, 2020, 2023 Leah Rowe <info@minifree.org>
|
||||||
# Copyright (C) 2015 Klemens Nanni <contact@autoboot.org>
|
# Copyright (C) 2015 Klemens Nanni <contact@autoboot.org>
|
||||||
#
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# This program is free software: you can redistribute it and/or modify
|
||||||
@@ -19,26 +19,28 @@
|
|||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
|
|
||||||
# This script assumes that the current working directory is the root
|
|
||||||
|
|
||||||
[ "x${DEBUG+set}" = 'xset' ] && set -v
|
[ "x${DEBUG+set}" = 'xset' ] && set -v
|
||||||
set -u -e
|
set -u -e
|
||||||
|
|
||||||
# clean coreboot utilities (dependencies for 'build'):
|
main()
|
||||||
|
{
|
||||||
printf "Cleaning crossgcc builds in all coreboot archives\n"
|
printf "Cleaning crossgcc builds in all coreboot archives\n"
|
||||||
|
|
||||||
[ ! -d "coreboot/" ] && exit 0
|
[ ! -d "coreboot/" ] && exit 0
|
||||||
|
|
||||||
# clean coreboot and crossgcc (source archives preserved)
|
|
||||||
for board in coreboot/*; do
|
for board in coreboot/*; do
|
||||||
if [ "${board##*/}" = "coreboot" ]; then
|
[ "${board##*/}" = "coreboot" ] && \
|
||||||
continue
|
continue
|
||||||
fi
|
[ ! -d "${board}" ] && \
|
||||||
if [ ! -d "${board}" ]; then
|
|
||||||
continue
|
continue
|
||||||
fi
|
make -C "${board}/" crossgcc-clean || err "make-clean"
|
||||||
make -C "${board}/" crossgcc-clean
|
|
||||||
done
|
done
|
||||||
|
}
|
||||||
|
|
||||||
printf "\n\n"
|
err()
|
||||||
|
{
|
||||||
|
printf "%s: %s\n" $0 $1
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
|
||||||
|
main $@
|
||||||
|
|||||||
Reference in New Issue
Block a user