mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] scripts/getenv: delete backup files from enviroment directory
@ 2011-06-01 14:52 Hubert Feurstein
  0 siblings, 0 replies; only message in thread
From: Hubert Feurstein @ 2011-06-01 14:52 UTC (permalink / raw)
  To: barebox

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@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


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-06-01 14:52 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-06-01 14:52 [PATCH] scripts/getenv: delete backup files from enviroment directory Hubert Feurstein

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox