Added EOL and SVN prop fixup batch file.

This commit is contained in:
skarg
2016-09-08 15:57:31 +00:00
parent 10aa414351
commit 7cc9b2be1d
+31
View File
@@ -0,0 +1,31 @@
@echo off
rem fix DOS/Unix names and Subversion EOL-Style
rem unix2dos.exe from MSYS: mingw.sourceforge.net
rem svn.exe from Subversion Tools
call :treeProcess
goto :eof
:treeProcess
rem fix all the specific files of this subdirectory:
for %%f in (*.c) do (
unix2dos.exe "%%f"
svn.exe propset svn:eol-style native "%%f"
svn.exe propset svn:mime-type text/plain "%%f"
)
for %%f in (*.h) do (
unix2dos.exe "%%f"
svn.exe propset svn:eol-style native "%%f"
svn.exe propset svn:mime-type text/plain "%%f"
)
for %%f in (*.bat) do (
unix2dos.exe "%%f"
svn.exe propset svn:eol-style native "%%f"
svn.exe propset svn:mime-type text/plain "%%f"
)
rem loop over all directories and sub directories
for /D %%d in (*) do (
cd %%d
call :treeProcess
cd ..
)
exit /b