[prev in list] [next in list] [prev in thread] [next in thread]
List: busybox
Subject: Re: [PATCH] build system: use find \! insetad of -not, which is not POSIX
From: Daniel Borca <dborca () yahoo ! com>
Date: 2013-11-26 21:47:33
Message-ID: 529516F5.4060904 () yahoo ! com
[Download RAW message or body]
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
["06-gen-not.patch" (text/plain)]
Signed-off-by: Daniel Borca <dborca@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
_______________________________________________
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic