aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/set-eol-style.sh
diff options
context:
space:
mode:
authorJeff Ames2007-12-20 01:01:42 +0000
committerJeff Ames2007-12-20 01:01:42 +0000
commit36a8f70931e24ccdf027966b737d95736be6e3f9 (patch)
tree541d27bf497ea3f1b7f2a92241c5032e98880d05 /set-eol-style.sh
parent* Re-did the mass calculations in ODE for Prim (diff)
downloadopensim-SC_OLD-36a8f70931e24ccdf027966b737d95736be6e3f9.zip
opensim-SC_OLD-36a8f70931e24ccdf027966b737d95736be6e3f9.tar.gz
opensim-SC_OLD-36a8f70931e24ccdf027966b737d95736be6e3f9.tar.bz2
opensim-SC_OLD-36a8f70931e24ccdf027966b737d95736be6e3f9.tar.xz
Extended svn:eol-style to check some other file types.
Diffstat (limited to 'set-eol-style.sh')
-rwxr-xr-xset-eol-style.sh13
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
3set_eol_style() 3set_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
13for file in `find OpenSim -name \*\.cs`; do 14EXTENSIONS="cs ini example txt sql"
14 set_eol_style $file 15
16for ext in ${EXTENSIONS}; do
17 set_eol_style $ext
15done 18done