[PATCH] scripts: genenv: remove empty files from tempdir

Jan Luebbe jlu at pengutronix.de
Tue May 28 03:45:46 EDT 2013


This allows leaving out default files from the environment by overriding
them with empty files in the board or BSP.

Signed-off-by: Jan Luebbe <jlu at pengutronix.de>
---
 scripts/genenv | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/genenv b/scripts/genenv
index 374db6d..3e91062 100755
--- a/scripts/genenv
+++ b/scripts/genenv
@@ -24,7 +24,7 @@ for i in $*; do
 done
 )
 
-find $tempdir -name '.svn' -o -name '*~' | xargs --no-run-if-empty rm -r
+find $tempdir -name '.svn' -o -name '*~' -o -size 0 | xargs --no-run-if-empty rm -r
 
 $objtree/scripts/bareboxenv -s $tempdir $target
 
-- 
1.8.2.rc2




More information about the barebox mailing list