-
Notifications
You must be signed in to change notification settings - Fork 76
Expand file tree
/
Copy pathfixup.bat
More file actions
31 lines (30 loc) · 800 Bytes
/
Copy pathfixup.bat
File metadata and controls
31 lines (30 loc) · 800 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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