From 8173aea83be24e807bed40bec2e2eca33d87b4e3 Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Fri, 11 Sep 2026 14:24:55 +0100 Subject: xbmk: reintroduce setvar as newvar (init only) use the simpler logic recently introduced, generalised but it only sets variables to empty. this is safer than the previous design, and brings the same reduction in sloccount overall since i wasn't doing anything other than emptying variables anyway, when it was used before. i didn't like the long list of variables inside files, so this makes everything more readable. Signed-off-by: Leah Rowe --- include/lib.sh | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include/lib.sh') diff --git a/include/lib.sh b/include/lib.sh index 1a0468d3..4ed8b5a0 100644 --- a/include/lib.sh +++ b/include/lib.sh @@ -8,6 +8,12 @@ cbfstool="elf/coreboot/default/cbfstool" rmodtool="elf/coreboot/default/rmodtool" +newvar() +{ + printf "%s\n" "$*" | \ + awk '{ for (i=1; i<=NF; i++) $i = $i "=;"; print }'; : +} + mkrom_tarball() { update_xbmkver "$1" -- cgit v1.2.1