Code: Select all
make $@ V=1 | sed -E "s@ /([a-z])/(.+)/@ \1:/\2/@g" | sed -E "s@-I/([a-z])/(.+)/@-I\1:/\2/@g" | sed -E "s@-L/([a-z])/(.+)/@-L\1:/\2/@g"
Code: Select all
-I /c/ESP32/esp-idf/components/bt/bluedroid/bta/sys/include
Code: Select all
-I c:/ESP32/esp-idf/components/bt/bluedroid/bta/sys/include
However I found this script is only able to catch first path, i.e., if the output is like
Code: Select all
-I /c/ESP32/esp-idf/components/bt/bluedroid/bta/sys/include -I /c/ESP32/esp-idf/components/bt/bluedroid/btcore/include
Code: Select all
-I c:/ESP32/esp-idf/components/bt/bluedroid/bta/sys/include -I /c/ESP32/esp-idf/components/bt/bluedroid/btcore/include
Is there a way to fix this?
Thanks