From e88693d8e432ebb82e4e298b016418b008f0fb50 Mon Sep 17 00:00:00 2001 From: Emily Trau Date: Wed, 29 Nov 2023 06:40:11 +0000 Subject: [PATCH] minimal-bootstrap.mes: reformat sources.nix for better diffs --- .../minimal-bootstrap/mes/gen-sources.sh | 19 +- .../linux/minimal-bootstrap/mes/sources.nix | 1066 ++++++++++++++++- 2 files changed, 1061 insertions(+), 24 deletions(-) diff --git a/pkgs/os-specific/linux/minimal-bootstrap/mes/gen-sources.sh b/pkgs/os-specific/linux/minimal-bootstrap/mes/gen-sources.sh index 3a734129c1f7..d86e5764e065 100755 --- a/pkgs/os-specific/linux/minimal-bootstrap/mes/gen-sources.sh +++ b/pkgs/os-specific/linux/minimal-bootstrap/mes/gen-sources.sh @@ -19,10 +19,9 @@ COMPILERS="mescc gcc" format() { - echo -n "[ " - # Terrible hack to convert a newline-delimited string to space-delimited - echo $* | xargs printf '"%s" ' - echo -n "]" + echo "[" + echo $* | xargs printf ' "%s"\n' + echo " ]" } gen_sources() { @@ -38,12 +37,12 @@ gen_sources() { cat <