From: Hubert Feurstein <h.feurstein@gmail.com>
To: barebox@lists.infradead.org
Subject: [PATCH] scripts/getenv: delete backup files from enviroment directory
Date: Wed, 1 Jun 2011 16:52:07 +0200 [thread overview]
Message-ID: <1306939927-23675-1-git-send-email-h.feurstein@gmail.com> (raw)
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
reply other threads:[~2011-06-01 14:52 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1306939927-23675-1-git-send-email-h.feurstein@gmail.com \
--to=h.feurstein@gmail.com \
--cc=barebox@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox