Re: [PATCH 1/1 v2] genenv: Allow to also specify files for the environment instead of only directories

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Sep 11, 2012 at 12:21:03PM +0200, Jean-Christophe PLAGNIOL-VILLARD wrote:
> we may specify file in the defconfig
> 
> Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@xxxxxxxxxxxx>

Applied, thanks

Sascha

> ---
>  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@xxxxxxxxxxxxxxxxxxx
> 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@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/barebox


[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux