[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Libcdio-devel] [PATCH] add .gitattributes and enforce LF on .ac/.am/.sh

From: Pete Batard
Subject: [Libcdio-devel] [PATCH] add .gitattributes and enforce LF on .ac/.am/.sh
Date: Tue, 17 Jan 2012 12:38:27 +0000
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:8.0) Gecko/20111105 Thunderbird/8.0

This is another patch that is required for MinGW.

Currently, running with a default MinGW install will break when if the git repo was fetched using TortoiseGit/msys-git on Windows as it defaults to converting the .ac/.am/.sh to CRLF. Autoconf appears to have issues handling CRLF when strings are broken on multiple lines, etc.

Right now, only the .ac seems to require LF, but I think it's probably a good thing to enforce LF for all of .ac/.am/.sh as no system should require those to be CRLF. For the record, this is what we use in another project (libusb) that supports Linux/OSX/Windows.



>From 10a7e032c3bf3b2e08e53676e74020b03c15b287 Mon Sep 17 00:00:00 2001
From: Pete Batard <address@hidden>
Date: Mon, 16 Jan 2012 16:58:06 +0000
Subject: [PATCH] add .gitattributes and enforce LF on .ac/.am/.sh

 .gitattributes |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
 create mode 100644 .gitattributes

diff --git a/.gitattributes b/.gitattributes
new file mode 100644
index 0000000..4b212e8
--- /dev/null
+++ b/.gitattributes
@@ -0,0 +1,3 @@
+*.sh            eol=lf
+*.ac            eol=lf
+*.am            eol=lf

reply via email to

[Prev in Thread] Current Thread [Next in Thread]