Demi Marie Obenour writes: > diff --git a/scripts/genfiles.sh b/scripts/genfiles.sh > new file mode 100755 > index 0000000000000000000000000000000000000000..5bee72ec72bc3aeb5b2e1db26721664858661d35 > --- /dev/null > +++ b/scripts/genfiles.sh > @@ -0,0 +1,26 @@ > +#!/bin/sh -- > +# SPDX-License-Identifier: EUPL-1.2+ > +# SPDX-FileCopyrightText: 2025 Demi Marie Obenour > +set -euo pipefail > +export LC_ALL=C LANGUAGE=C > +dir=$(git rev-parse --show-toplevel) This is still unused, just like it was in the previous version? shellcheck still identifies this. > +for i in host/rootfs img/app vm/sys/net; do > + output_file=$i/file-list.mk > + { > + git -C "$i" -c core.quotePath=true ls-files $'--format=%(objectmode)\t%(path)' -- image | > + sort -t $'\t' -k 2 > + } | > + awk -f scripts/genfiles.awk > "$output_file.tmp" > + if [ -f "$output_file" ]; then > + # Avoid changing output file if it is up to date, as that > + # would cause unnecessary rebuilds. > + if cmp -s -- "$output_file.tmp" "$output_file"; then > + rm -- "$output_file.tmp" > + continue > + else > + astatus=$? > + if [ "$astatus" != 1 ]; then exit "$astatus"; fi > + fi > + fi > + mv -- "$output_file.tmp" "$output_file" > +done