From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from metis.ext.pengutronix.de ([2001:6f8:1178:4:290:27ff:fe1d:cc33]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1TBL47-0007rb-LZ for barebox@lists.infradead.org; Tue, 11 Sep 2012 07:39:24 +0000 Date: Tue, 11 Sep 2012 09:39:21 +0200 From: Sascha Hauer Message-ID: <20120911073921.GF18243@pengutronix.de> References: <1347339485-16235-1-git-send-email-plagnioj@jcrosoft.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <1347339485-16235-1-git-send-email-plagnioj@jcrosoft.com> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: barebox-bounces@lists.infradead.org Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: Re: [PATCH 1/1] genenv: fix files copy To: Jean-Christophe PLAGNIOL-VILLARD Cc: barebox@lists.infradead.org On Tue, Sep 11, 2012 at 06:58:05AM +0200, Jean-Christophe PLAGNIOL-VILLARD wrote: > we may specify file in the defconfig This was never intended to work, so this is no bug but a feature addition. Can we rewrite the commit message to something like 'defenv: Allow to also specify files for the environment instead of only directories' Sascha > > Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD > --- > scripts/genenv | 6 +++++- > 1 file changed, 5 insertions(+), 1 deletion(-) > > diff --git a/scripts/genenv b/scripts/genenv > index c84af0c..ff7972b 100755 > --- a/scripts/genenv > +++ b/scripts/genenv > @@ -11,7 +11,11 @@ shift 2 > tempdir=$(mktemp -d tmp.XXXXXX) > > for i in $*; do > - cp -r $i/* $tempdir > + if [ -d $i ]; then > + cp -r $i/* $tempdir > + else > + cp -a $i $tempdir > + fi > done > > find $tempdir -name '.svn' -o -name '*~' | xargs --no-run-if-empty rm -r > -- > 1.7.10.4 > > > _______________________________________________ > barebox mailing list > barebox@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/barebox > -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox