[PATCH] build system: use find \! insetad of -not, which is not POSIX
Daniel Borca
dborca at yahoo.com
Tue Nov 26 21:47:33 UTC 2013
Resubmitted.
Xabier Oneca -- xOneca wrote:
> Hello Daniel,
>
>> Use "find \!" instead of "find -not" in build scripts.
>
> Is the escape needed for exclamation character when in a script? It's
> fine, but you can save the backslash.
>
> Cheers,
> Xabier Oneca_,,_
-dborca
-------------- next part --------------
Signed-off-by: Daniel Borca <dborca at yahoo.com>
---
scripts/gen_build_files.sh | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/scripts/gen_build_files.sh b/scripts/gen_build_files.sh
index 0989b2f..6fc27fb 100755
--- a/scripts/gen_build_files.sh
+++ b/scripts/gen_build_files.sh
@@ -61,7 +61,7 @@ sed -n -e 's@^//usage:\([ \t].*\)$@\1 \\@p' -e 's@^//usage:\([^ \t].*\)$@\n\1 \\
# (Re)generate */Kbuild and */Config.in
# We skip .dotdirs - makes git/svn/etc users happier
-{ cd -- "$srctree" && find . -type d -not '(' -name '.?*' -prune ')'; } \
+{ cd -- "$srctree" && find . -type d ! '(' -name '.?*' -prune ')'; } \
| while read -r d; do
d="${d#./}"
--
1.7.4.4
More information about the busybox
mailing list