1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-22 08:08:50 -05:00
curl/winbuild
Ray Satiro 006b61eb0b newlines: fix mixed newlines to LF-only
I use the curl repo mainly on Windows with the typical Windows git
checkout which converts the LF line endings in the curl repo to CRLF
automatically on checkout. The automatic conversion is not done on files
in the repo with mixed line endings. I recently noticed some weird
output with projects/build-openssl.bat that I traced back to mixed line
endings, so I scanned the repo and there are files (excluding the
test data) that have mixed line endings.

I used this command below to do the scan. Unfortunately it's not as easy
as git grep, at least not on Windows. This gets the names of all the
files in the repo's HEAD, gets each of those files raw from HEAD, checks
for mixed line endings of both LF and CRLF, and prints the name if
mixed. I excluded path tests/data/test* because those can have mixed
line endings if I understand correctly.

for f in `git ls-tree --name-only --full-tree -r HEAD`;
do if [ -n "${f##tests/data/test*}" ];
    then git show "HEAD:$f" | \
        perl -0777 -ne 'exit 1 if /([^\r]\n.*\r\n)|(\r\n.*[^\r]\n)/';
    if [ $? -ne 0 ];
        then echo "$f";
    fi;
fi;
done
2014-09-12 10:22:34 +02:00
..
.gitignore Moved some patterns to subfolder's .gitignore. 2012-07-03 14:31:50 +02:00
BUILD.WINDOWS.txt BUILD.WINDOWS: update URL for windows prereqs 2014-05-04 00:48:06 +02:00
gen_resp_file.bat newlines: fix mixed newlines to LF-only 2014-09-12 10:22:34 +02:00
Makefile.msvc.names msvc: move Makefile.msvc.names into winbuild/ 2013-02-06 23:14:11 +01:00
Makefile.vc Remove all traces of FBOpenSSL SPNEGO support 2014-07-16 17:26:08 +02:00
MakefileBuild.vc Remove all traces of FBOpenSSL SPNEGO support 2014-07-16 17:26:08 +02:00