[prev in list] [next in list] [prev in thread] [next in thread]
List: busybox
Subject: [PATCH]: scripts/gen_build_files.sh: find -not operator
From: "Matias A. Fonzo" <selk () dragora ! org>
Date: 2012-11-20 20:51:04
Message-ID: 20121120175104.25bd02af () rafaela
[Download RAW message or body]
Hello there,
The script gen_build_files.sh uses `find' with the operator '-not' at
the line 64. The '-not' operator is available on busybox only
if the "full-blown desktop" option is enabled. Otherwise, find
of busybox provides the negation symbol '!'. (if
CONFIG_FEATURE_FIND_NOT is selected -- of course)
If you are working in a busybox environment or making a LFS system
trying to compile busybox one more time.. then `find' fails at build
time.
I attach a trivial patch to use '!' instead of '-not'.
(Maybe in the future gen_build_files.sh should be replaced with a better
approach, without calling to external commands.).
Thanks,
Matias.
[Attachment #3 (text/x-patch)]
--- scripts/gen_build_files.sh.orig 2012-06-26 10:35:45.000000000 -0300
+++ scripts/gen_build_files.sh 2012-11-20 16:59:35.000000000 -0300
@@ -61,7 +61,7 @@
# (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#./}"
_______________________________________________
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