[PATCH] scripts/getenv: delete backup files from enviroment directory
Hubert Feurstein
h.feurstein at gmail.com
Wed Jun 1 10:52:07 EDT 2011
Also add the '--no-run-if-empty' option to xargs to avoid an
error message when no files/folders were found.
Signed-off-by: Hubert Feurstein <h.feurstein at gmail.com>
---
scripts/genenv | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/scripts/genenv b/scripts/genenv
index 65c074e..7b279c8 100755
--- a/scripts/genenv
+++ b/scripts/genenv
@@ -13,7 +13,8 @@ tempdir=$(mktemp -d)
for i in $*; do
cp -r $i/* $tempdir
done
-find $tempdir -name .svn |xargs rm -r
+
+find $tempdir -name '.svn' -o -name '*~' | xargs --no-run-if-empty rm -r
$objtree/scripts/bareboxenv -s $tempdir $objtree/barebox_default_env
--
1.7.1
More information about the barebox
mailing list