aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/set-eol-style.sh
diff options
context:
space:
mode:
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