We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3f62df6 commit ef1e86bCopy full SHA for ef1e86b
mbed-os-to-arduino
@@ -151,9 +151,11 @@ generate_includes () {
151
152
echo -n " copying to destination... "
153
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"/
+ cd mbed-os
+ cut -d'/' -f3- < "$ARDUINOVARIANT"/includes.txt | grep 'targets' \
+ | xargs -I{} find {} -maxdepth 1 -name '*.h' \
157
+ | xargs -I{} cp --parent {} "$ARDUINOCOREMBED"/
158
+ cd -
159
160
echo " done."
161
}
0 commit comments