general code cleanup in shell scripts

Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
Leah Rowe
2023-10-03 12:59:35 +01:00
parent 334aa1f7c9
commit 5de8eda21c
9 changed files with 29 additions and 61 deletions
-1
View File
@@ -227,7 +227,6 @@ run_make_command()
copy_elf()
{
[ "${project}" != "coreboot" ] || xx_ modify_coreboot_rom
while read f; do
[ ! -f "${codedir}/$f" ] || \
xx_ cp "${codedir}/${f}" "${dest_dir}/"
+3 -6
View File
@@ -46,12 +46,9 @@ run_make_command()
{
[ -f "${project}/Makefile" ] || [ -f "${project}/makefile" ] || \
[ -f "${project}/GNUmakefile" ] || return 0
if [ -z "${mode}" ]; then
x_ make -C "${project}" -j$(nproc)
else
x_ make -C "${project}" clean
make -C "${project}" distclean 2>/dev/null || :
fi
[ -z "${mode}" ] && x_ make -C "${project}" -j$(nproc) && return 0
x_ make -C "${project}" clean
make -C "${project}" distclean 2>/dev/null || :
}
main $@