Skip to content

Commit

Permalink
Add fix-eol.bat
Browse files Browse the repository at this point in the history
Fixes EOL of entire solution as per .gitattributes rules.
Useful for normalizing EOL of repo.
  • Loading branch information
angularsen committed Jan 31, 2016
1 parent 2bcdf88 commit 3f82e9c
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions fix-eol.bat
@@ -0,0 +1,16 @@
@ECHO OFF
SET Dir=%1
IF "%1"=="" (
SET Dir=%~dp0.
)

ECHO Using dir: %Dir%
ECHO Normalizing EOL to LF on:
ECHO .cs .cshtml .js .html .ts .csproj .config

REM Exclude .sln files, they need to be CRLF
%~dp0\tools\sfk.exe crlf-to-lf %Dir% .cs .cshtml .js .html .ts -yes

ECHO Normalizing EOL to CRLF on:
ECHO .sln .csproj .config
%~dp0\tools\sfk.exe lf-to-crlf %Dir% .sln .csproj .config -yes

0 comments on commit 3f82e9c

Please sign in to comment.