Otherwise bash errors with errors such as

    ./configure: line 17: $'\r': command not found
    ./configure: line 33: syntax error near unexpected token `newline'
    '/configure: line 33: `     ;;

Signed-off-by: Antonin Décimo <anto...@tarides.com>
---
 .gitattributes                                 | 10 ++++++++++
 mingw-w64-libraries/winpthreads/.gitattributes | 10 ++++++++++
 2 files changed, 20 insertions(+)
 create mode 100644 .gitattributes
 create mode 100644 mingw-w64-libraries/winpthreads/.gitattributes

diff --git a/.gitattributes b/.gitattributes
new file mode 100644
index 000000000..f8beb5d51
--- /dev/null
+++ b/.gitattributes
@@ -0,0 +1,10 @@
+# Set the default behavior, in case people don't have core.autocrlf set.
+* text=auto
+
+# Shell scripts
+configure text eol=lf
+configure.ac text eol=lf
+Makefile* text eol=lf
+*.sh text eol=lf
+*.m4 text eol=lf
+build-aux/* text eol=lf
diff --git a/mingw-w64-libraries/winpthreads/.gitattributes 
b/mingw-w64-libraries/winpthreads/.gitattributes
new file mode 100644
index 000000000..f8beb5d51
--- /dev/null
+++ b/mingw-w64-libraries/winpthreads/.gitattributes
@@ -0,0 +1,10 @@
+# Set the default behavior, in case people don't have core.autocrlf set.
+* text=auto
+
+# Shell scripts
+configure text eol=lf
+configure.ac text eol=lf
+Makefile* text eol=lf
+*.sh text eol=lf
+*.m4 text eol=lf
+build-aux/* text eol=lf
-- 
2.45.1



_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to