summaryrefslogtreecommitdiff
path: root/script/handle
diff options
context:
space:
mode:
authorLeah Rowe <vimuser@noreply.codeberg.org>2023-09-03 14:12:47 +0000
committerLeah Rowe <vimuser@noreply.codeberg.org>2023-09-03 14:12:47 +0000
commit71d361aac7ce790268a5f3454140f23889a56e7d (patch)
tree56a4c321f5ef1eefadc6bfac4275e47f8468ac40 /script/handle
parenteebf713311ca333f85d75fafb92fdbd729b4a0ba (diff)
parentef3fb05d66f1b5c94dd65ae2d14b691227d6afbe (diff)
Merge pull request 'Less cat abuse' (#123) from Riku_V/lbmk:cat into master
Reviewed-on: https://codeberg.org/libreboot/lbmk/pulls/123
Diffstat (limited to 'script/handle')
-rwxr-xr-xscript/handle/make/config8
1 files changed, 4 insertions, 4 deletions
diff --git a/script/handle/make/config b/script/handle/make/config
index c148ebca..3db91550 100755
--- a/script/handle/make/config
+++ b/script/handle/make/config
@@ -26,8 +26,8 @@ set -u -e
. "include/err.sh"
-projectname="$(cat projectname)"
-our_version="$(cat version)"
+read projectname < projectname
+read our_version < version
export LOCALVERSION="-${projectname}-${our_version}"
@@ -270,11 +270,11 @@ copy_elf()
err "copy_elf: cannot prepare coreboot image"
fi
- for f in $(cat "${listfile}"); do
+ while read f; do
[ ! -f "${codedir}/$f" ] || \
cp "${codedir}/${f}" "${dest_dir}/" || \
fail "copy_elf: cannot copy elf file"
- done
+ done < ${listfile}
./handle make file -c "${codedir}" || \
fail "copy_elf: clean: ${codedir} (${project}/${target})"