diff --git a/mbed-os-to-arduino b/mbed-os-to-arduino index f6654345..2fcb81b4 100755 --- a/mbed-os-to-arduino +++ b/mbed-os-to-arduino @@ -145,7 +145,13 @@ generate_includes () { echo -n " copying to destination... " cut -d'/' -f3- < "$ARDUINOVARIANT"/includes.txt | grep '^targets/TARGET_' \ - | sed -e 's#\(.*\)#+ \1#' -e '$a+ targets/' -e '$a+ *.h' -e '$a- *' \ + | sed -e 's#\(.*\)#+ \1#' \ + -e '$a\ + + targets/' \ + -e '$a\ + + *.h' \ + -e '$a\ + - *' \ | rsync -avvz --include-from=- mbed-os/ "$ARDUINOCOREMBED"/ echo " done." @@ -327,4 +333,4 @@ Using Arduino as an mbed library echo -e "arduino/cores/arduino/main.cpp\n arduino/cores/arduino/mbed/\narduino/libraries/" > .mbedignore #add ARDUINO_AS_MBED_LIBRARY=1 to macros section in mbed_app.json -echo "https://github.com/arduino/ArduinoCore-mbed#bf6e64771ebe20285b0364756dff856ebbc679dc" > arduino.lib \ No newline at end of file +echo "https://github.com/arduino/ArduinoCore-mbed#bf6e64771ebe20285b0364756dff856ebbc679dc" > arduino.lib