Update to 2.0.6

This commit is contained in:
Sergey
2020-07-28 16:19:21 +03:00
parent 46ff2246fa
commit 8dd26c1a3e
1621 changed files with 68900 additions and 19544 deletions

30
buildroot/bin/format_code Executable file
View File

@@ -0,0 +1,30 @@
#!/usr/bin/env bash
#
# format_code [dir/file...]
#
HERE=`dirname $0`
while [[ $# -gt 0 ]]; do
val="$1"
if [ -d "$val" ]; then
find $val -name *.cpp -exec "$HERE/uncrust" '{}' \;
elif [ -d "./Marlin/src/$val" ]; then
find "./Marlin/src/$val" -name *.cpp -exec "$HERE/uncrust" '{}' \;
elif [ -f "./Marlin/src/$val" ]; then
uncrust "./Marlin/src/$val"
elif [ -f "$val" ]; then
uncrust "$val"
fi
done