Fixes #171 Under Windows, it is very hard to make a symlink and by default git won't make one to the Arduino API directory, causing annoying build errors. Avoid the issue by duplicating the ArduinoAPI directory explicitly and using CI to verify that there are no differences between the two.
9 lines
553 B
Bash
Executable file
9 lines
553 B
Bash
Executable file
#!/bin/bash
|
|
|
|
for dir in ./cores/rp2040 ./libraries/EEPROM ./libraries/I2S \
|
|
./libraries/LittleFS/src ./libraries/LittleFS/examples \
|
|
./libraries/rp2040 ./libraries/SD ./libraries/SdFat \
|
|
./libraries/Servo ./libraries/SPI ./libraries/Wire; do
|
|
find $dir -type f \( -name "*.c" -o -name "*.h" -o -name "*.cpp" \) -a \! -path '*api*' -exec astyle --suffix=none --options=./tests/astyle_core.conf \{\} \;
|
|
find $dir -type f -name "*.ino" -exec astyle --suffix=none --options=./tests/astyle_examples.conf \{\} \;
|
|
done
|