mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] fix genenv when using svn based enviroment directory
@ 2011-05-20 13:00 Tim Sander
  2011-05-23  7:21 ` Sascha Hauer
  0 siblings, 1 reply; 3+ messages in thread
From: Tim Sander @ 2011-05-20 13:00 UTC (permalink / raw)
  To: barebox

Hi

When setting the default env of barebox to a svn directory the build stops
with questions on removal and the barebox env is polluted with svn files.

The patch below fixes that.

Tested with 2011.03.1. Newer versions don't boot anymore on my pcm043 :-(.

Signed-off-by: Tim Sander <tim.sander@hbm.com>

---
 scripts/genenv |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/scripts/genenv b/scripts/genenv
index de8b4f1..c6bcd4b 100755
--- a/scripts/genenv
+++ b/scripts/genenv
@@ -13,7 +13,9 @@ tempdir=$(mktemp -d)
 for i in $*; do
        cp -r $i/* $tempdir
 done
+find $tempdir -name .svn |xargs rm -r
+
 $objtree/scripts/bareboxenv -s $tempdir $objtree/barebox_default_env
 
-rm -r $tempdir
+rm -rf $tempdir
 
-- 
1.7.0.4


Hottinger Baldwin Messtechnik GmbH, Im Tiefen See 45, 64293 Darmstadt, Germany | www.hbm.com 

Registered as GmbH (German limited liability corporation) in the commercial register at the local court of Darmstadt, HRB 1147  
Company domiciled in Darmstadt | CEO: Andreas Huellhorst | Chairman of the board: James Charles Webster

Als Gesellschaft mit beschraenkter Haftung eingetragen im Handelsregister des Amtsgerichts Darmstadt unter HRB 1147 
Sitz der Gesellschaft: Darmstadt | Geschaeftsfuehrung: Andreas Huellhorst | Aufsichtsratsvorsitzender: James Charles Webster

The information in this email is confidential. It is intended solely for the addressee. If you are not the intended recipient, please let me know and delete this email.

Die in dieser E-Mail enthaltene Information ist vertraulich und lediglich fur den Empfaenger bestimmt. Sollten Sie nicht der eigentliche Empfaenger sein, informieren Sie mich bitte kurz und loeschen diese E-Mail.


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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-05-23  7:47 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-20 13:00 [PATCH] fix genenv when using svn based enviroment directory Tim Sander
2011-05-23  7:21 ` Sascha Hauer
2011-05-23  7:47   ` [PATCH] " Tim Sander

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