genenv: Allow to also specify files for the environment instead of only directories
PATCH v2 1/1 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 <[email protected]>
--- scripts/genenv | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
scripts/genenv +5 -1
@@ -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
Signature · 7 lines
1.7.10.4 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
Sascha Hauer
AppliedQuoted 3 lines · Jean-Christophe PLAGNIOL-VILLARD
we may specify file in the defconfig
Signed-off-by Jean-Christophe PLAGNIOL-VILLARD <[email protected]>
Applied, thanks
Sascha
Quoted 30 lines
--- scripts/genenv | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)scripts/genenv +5
-1@@ -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 -rSignature · 7 lines
1.7.10.4 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
Signature · 9 lines
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 [email protected] http://lists.infradead.org/mailman/listinfo/barebox