From 60db1a422c125e6164ed78f91c89b902b02b8143 Mon Sep 17 00:00:00 2001
From: Ivailo Monev <[email protected]>
Date: Sat, 18 Jan 2014 00:40:26 +0000
Subject: [PATCH 1/1] correct `find' invocation in gen_build_files.sh

the Busybox `find' applet does not support "-not"
arugment but supports the alternative "!". This
change makes it possible to build Busybox with
Busybox instead of requiring `find' from findutils
thus making it more self-hosted.

Signed-off-by: Ivailo Monev <[email protected]>
---
 scripts/gen_build_files.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/gen_build_files.sh b/scripts/gen_build_files.sh
index e8fa831..ebee17c 100755
--- a/scripts/gen_build_files.sh
+++ b/scripts/gen_build_files.sh
@@ -71,7 +71,7 @@ sed -n -e 's@^//usage:\([ '"$TAB"'].*\)$@\1 \\@p' \
 
 # (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.8.4.5

_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox

Reply via email to