* [PATCH] checkrootfiles: fix checks on hosts with newer grep
@ 2023-05-16 12:20 Arne Fitzenreiter
0 siblings, 0 replies; only message in thread
From: Arne Fitzenreiter @ 2023-05-16 12:20 UTC (permalink / raw)
To: development
[-- Attachment #1: Type: text/plain, Size: 2859 bytes --]
newer grep versions ignore * in --exclude
work around this by excluding all arch specific directories with
--exclude-dir
Signed-off-by: Arne Fitzenreiter <arne_f(a)ipfire.org>
---
tools/checkrootfiles | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/tools/checkrootfiles b/tools/checkrootfiles
index a2712808b..05b16f368 100755
--- a/tools/checkrootfiles
+++ b/tools/checkrootfiles
@@ -34,30 +34,30 @@ if [ "${?}" == "0" ]; then
fi
grep -r '/x86_64' ./config/rootfiles/ --exclude gcc --exclude rust-libc \
- --exclude rust-ppv-lite86 --exclude rust-memchr --exclude *linux* \
+ --exclude rust-ppv-lite86 --exclude rust-memchr --exclude-dir aarch64 --exclude-dir riscv64 --exclude-dir x86_64 \
--exclude update.sh \
--exclude-dir oldcore --exclude-dir x86_64 >/dev/null 2>&1
if [ "${?}" == "0" ]; then
echo "Error! '/x86_64' in rootfiles files found!"
grep -r '/x86_64' ./config/rootfiles/ --exclude gcc --exclude rust-libc \
- --exclude rust-ppv-lite86 --exclude rust-memchr --exclude *linux* \
+ --exclude rust-ppv-lite86 --exclude rust-memchr --exclude-dir aarch64 --exclude-dir riscv64 --exclude-dir x86_64 \
--exclude update.sh \
--exclude-dir oldcore --exclude-dir x86_64
echo "Replace by xxxMACHINExxx !"
fi
-grep -r '/aarch64' ./config/rootfiles/ --exclude gcc --exclude rust-libc --exclude gdb --exclude liburcu --exclude gdb --exclude-dir oldcore --exclude-dir aarch64 >/dev/null 2>&1
+grep -r '/aarch64' ./config/rootfiles/ --exclude gcc --exclude rust-libc --exclude gdb --exclude liburcu --exclude gdb --exclude-dir oldcore --exclude-dir aarch64 --exclude-dir riscv64 --exclude-dir x86_64 >/dev/null 2>&1
if [ "${?}" == "0" ]; then
echo "Error! '/aarch64' in rootfiles files found!"
grep -r '/aarch64' ./config/rootfiles/ --exclude gcc --exclude rust-libc \
- --exclude-dir oldcore --exclude-dir aarch64
+ --exclude-dir oldcore --exclude-dir aarch64 --exclude-dir riscv64 --exclude-dir x86_64
echo "Replace by xxxMACHINExxx !"
fi
-grep -r '/riscv64' ./config/rootfiles/ --exclude gcc --exclude rust-libc --exclude gdb --exclude liburcu --exclude go --exclude-dir oldcore --exclude-dir riscv64 >/dev/null 2>&1
+grep -r '/riscv64' ./config/rootfiles/ --exclude gcc --exclude rust-libc --exclude gdb --exclude liburcu --exclude go --exclude-dir oldcore --exclude-dir aarch64 --exclude-dir riscv64 --exclude-dir x86_64 >/dev/null 2>&1
if [ "${?}" == "0" ]; then
echo "Error! '/riscv64' in rootfiles files found!"
grep -r '/riscv64' ./config/rootfiles/ --exclude gcc --exclude rust-libc --exclude go \
- --exclude-dir oldcore --exclude-dir riscv64
+ --exclude-dir oldcore --exclude-dir aarch64 --exclude-dir riscv64 --exclude-dir x86_64
echo "Replace by xxxMACHINExxx !"
fi
--
2.38.1
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-05-16 12:20 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-05-16 12:20 [PATCH] checkrootfiles: fix checks on hosts with newer grep Arne Fitzenreiter
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox