summaryrefslogtreecommitdiff
path: root/script/handle/make
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2023-10-03 12:59:35 +0100
committerLeah Rowe <leah@libreboot.org>2023-10-03 12:59:49 +0100
commit5de8eda21c61fd7e1cf6b7e4ec6c9d98dae3e365 (patch)
treeaa0099feff1f80fece4ce4efe16caa74ef905097 /script/handle/make
parent334aa1f7c985e86bd6f0302dbf404927cbb8a19e (diff)
general code cleanup in shell scripts
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'script/handle/make')
-rwxr-xr-xscript/handle/make/config1
-rwxr-xr-xscript/handle/make/file9
2 files changed, 3 insertions, 7 deletions
diff --git a/script/handle/make/config b/script/handle/make/config
index 31c1b3c2..cd13aca6 100755
--- a/script/handle/make/config
+++ b/script/handle/make/config
@@ -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}/"
diff --git a/script/handle/make/file b/script/handle/make/file
index 445016ea..c0a6afb4 100755
--- a/script/handle/make/file
+++ b/script/handle/make/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 $@