diff options
author | Jeff Ames | 2007-12-20 01:01:42 +0000 |
---|---|---|
committer | Jeff Ames | 2007-12-20 01:01:42 +0000 |
commit | 36a8f70931e24ccdf027966b737d95736be6e3f9 (patch) | |
tree | 541d27bf497ea3f1b7f2a92241c5032e98880d05 /set-eol-style.sh | |
parent | * Re-did the mass calculations in ODE for Prim (diff) | |
download | opensim-SC-36a8f70931e24ccdf027966b737d95736be6e3f9.zip opensim-SC-36a8f70931e24ccdf027966b737d95736be6e3f9.tar.gz opensim-SC-36a8f70931e24ccdf027966b737d95736be6e3f9.tar.bz2 opensim-SC-36a8f70931e24ccdf027966b737d95736be6e3f9.tar.xz |
Extended svn:eol-style to check some other file types.
Diffstat (limited to 'set-eol-style.sh')
-rwxr-xr-x | set-eol-style.sh | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/set-eol-style.sh b/set-eol-style.sh index 30c3e0f..af8887b 100755 --- a/set-eol-style.sh +++ b/set-eol-style.sh | |||
@@ -2,14 +2,17 @@ | |||
2 | 2 | ||
3 | set_eol_style() | 3 | set_eol_style() |
4 | { | 4 | { |
5 | for file in $*; do | 5 | IFS=$'\n' |
6 | svn_status=`svn propget svn:eol-style $file` | 6 | for file in `find . -iname \*\.$1`; do |
7 | if [ -z "${svn_status}" -o "${svn_status}" != "native" ]; then | 7 | eolstyle=`svn propget svn:eol-style $file` |
8 | if [ -z "${eolstyle}" -o "${eolstyle}" != "native" ]; then | ||
8 | svn propset svn:eol-style native $file | 9 | svn propset svn:eol-style native $file |
9 | fi | 10 | fi |
10 | done | 11 | done |
11 | } | 12 | } |
12 | 13 | ||
13 | for file in `find OpenSim -name \*\.cs`; do | 14 | EXTENSIONS="cs ini example txt sql" |
14 | set_eol_style $file | 15 | |
16 | for ext in ${EXTENSIONS}; do | ||
17 | set_eol_style $ext | ||
15 | done | 18 | done |