From f7c1838efdd1dd0d5f169462ea143580e06fe520 Mon Sep 17 00:00:00 2001 From: Leonard Gies Date: Fri, 11 Apr 2025 00:26:51 +0200 Subject: [PATCH] add script to fix CRLF newline characters generated by CubeMX and TouchGFX Designer --- fix_stm_linebreak.sh | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100755 fix_stm_linebreak.sh diff --git a/fix_stm_linebreak.sh b/fix_stm_linebreak.sh new file mode 100755 index 0000000..f31c953 --- /dev/null +++ b/fix_stm_linebreak.sh @@ -0,0 +1,6 @@ +# CubeMX and TouchGFX Designer generate code using CRLF as newline characters +# this command converts all newline characters from CRLF to LF + +BASEDIR=$(dirname "$0") + +find "$BASEDIR" -type f -exec dos2unix {} +