diff options
author | Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> | 2012-09-11 12:21:03 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2012-09-11 13:43:10 +0200 |
commit | 453c220be348d995edbe61d7f72f55ca5279a4f3 (patch) | |
tree | ecc4bcd8182e66a16a6b192ca25ca1a06a34b632 /scripts/genenv | |
parent | f9fde002262d4c460de0b738c9e633e709bef723 (diff) | |
download | barebox-453c220be348d995edbe61d7f72f55ca5279a4f3.tar.gz barebox-453c220be348d995edbe61d7f72f55ca5279a4f3.tar.xz |
genenv: Allow to also specify files for the environment instead of only directories
we may specify file in the defconfig
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'scripts/genenv')
-rwxr-xr-x | scripts/genenv | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/genenv b/scripts/genenv index c84af0c015..ff7972bb95 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 |