Skip to content

Commit ef1e86b

Browse files
committed
Correctly copy all *target* related headers
1 parent 3f62df6 commit ef1e86b

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

Diff for: mbed-os-to-arduino

+5-3
Original file line numberDiff line numberDiff line change
@@ -151,9 +151,11 @@ generate_includes () {
151151

152152
echo -n " copying to destination... "
153153

154-
cut -d'/' -f3- < "$ARDUINOVARIANT"/includes.txt | grep '^targets/TARGET_' \
155-
| sed -e 's#\(.*\)#+ \1#' -e '$a+ targets/' -e '$a+ *.h' -e '$a- *' \
156-
| rsync -avvz --include-from=- mbed-os/ "$ARDUINOCOREMBED"/
154+
cd mbed-os
155+
cut -d'/' -f3- < "$ARDUINOVARIANT"/includes.txt | grep 'targets' \
156+
| xargs -I{} find {} -maxdepth 1 -name '*.h' \
157+
| xargs -I{} cp --parent {} "$ARDUINOCOREMBED"/
158+
cd -
157159

158160
echo " done."
159161
}

0 commit comments

Comments
 (0)