diff options
Diffstat (limited to 'set-eol-style.sh')
-rwxr-xr-x | set-eol-style.sh | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/set-eol-style.sh b/set-eol-style.sh index f47580d..30c3e0f 100755 --- a/set-eol-style.sh +++ b/set-eol-style.sh | |||
@@ -1,5 +1,15 @@ | |||
1 | #!/bin/sh | 1 | #!/bin/sh |
2 | 2 | ||
3 | find OpenSim -name \*\.cs | xargs perl -pi -e 's/\r//' | 3 | set_eol_style() |
4 | find OpenSim -name \*\.cs | xargs svn propset svn:eol-style native | 4 | { |
5 | for file in $*; do | ||
6 | svn_status=`svn propget svn:eol-style $file` | ||
7 | if [ -z "${svn_status}" -o "${svn_status}" != "native" ]; then | ||
8 | svn propset svn:eol-style native $file | ||
9 | fi | ||
10 | done | ||
11 | } | ||
5 | 12 | ||
13 | for file in `find OpenSim -name \*\.cs`; do | ||
14 | set_eol_style $file | ||
15 | done | ||