Skip to content
This repository was archived by the owner on Apr 16, 2021. It is now read-only.

Revert formatting to get MacOS' sed working #57

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions mbed-os-to-arduino
Original file line number Diff line number Diff line change
Expand Up @@ -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."
Expand Down Expand Up @@ -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
echo "https://github.com/arduino/ArduinoCore-mbed#bf6e64771ebe20285b0364756dff856ebbc679dc" > arduino.lib