bug-grub
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Bug fix: ./find warning in autogen.sh


From: Martin Rowe
Subject: Bug fix: ./find warning in autogen.sh
Date: Sat, 11 May 2019 10:13:15 +0000

This patch prevents a warning introduced by commit
18fd1007e3a812f50347945cc3dcd7c8c7e104bb when running autogen.sh

The actual warning is
---
find: warning: Unix filenames usually don't contain slashes (though
pathnames do).  That means that '-iname ‘./grub-core/lib/gnulib/*’'
will probably evaluate to false all the time on this system.  You
might find the '-wholename' test more useful, or perhaps '-samefile'.
Alternatively, if you are using GNU grep, you could use 'find ...
-print0 | grep -FzZ ‘./grub-core/lib/gnulib/*’'.
---

Patch to fix it below, simple change from -iname to -ipath

--- a/autogen.sh    2019-05-11 05:28:30.331223752 +0000
+++ b/autogen.sh    2019-05-11 05:28:44.431660500 +0000
@@ -13,7 +13,7 @@
 export LC_COLLATE=C
 unset LC_ALL

-find . -iname '*.[ch]' ! -ipath './grub-core/lib/libgcrypt-grub/*' !
-ipath './build-aux/*' ! -ipath './grub-core/lib/libgcrypt/src/misc.c'
! -ipath './grub-core/lib/libgcrypt/src/global.c' ! -ipath
'./grub-core/lib/libgcrypt/src/secmem.c'  ! -ipath
'./util/grub-gen-widthspec.c' ! -ipath './util/grub-gen-asciih.c' !
-ipath './gnulib/*' ! -iname './grub-core/lib/gnulib/*' |sort >
po/POTFILES.in
+find . -iname '*.[ch]' ! -ipath './grub-core/lib/libgcrypt-grub/*' !
-ipath './build-aux/*' ! -ipath './grub-core/lib/libgcrypt/src/misc.c'
! -ipath './grub-core/lib/libgcrypt/src/global.c' ! -ipath
'./grub-core/lib/libgcrypt/src/secmem.c'  ! -ipath
'./util/grub-gen-widthspec.c' ! -ipath './util/grub-gen-asciih.c' !
-ipath './gnulib/*' ! -ipath './grub-core/lib/gnulib/*' |sort >
po/POTFILES.in
 find util -iname '*.in' ! -name Makefile.in  |sort > po/POTFILES-shell.in

 echo "Importing unicode..."



reply via email to

[Prev in Thread] Current Thread [Next in Thread]