Extended svn:eol-style to check some other file types.

afrisby
Jeff Ames 2007-12-20 01:01:42 +00:00
parent 27e0287526
commit 36a8f70931
11 changed files with 282 additions and 279 deletions

View File

@ -2,14 +2,17 @@
set_eol_style() set_eol_style()
{ {
for file in $*; do IFS=$'\n'
svn_status=`svn propget svn:eol-style $file` for file in `find . -iname \*\.$1`; do
if [ -z "${svn_status}" -o "${svn_status}" != "native" ]; then eolstyle=`svn propget svn:eol-style $file`
if [ -z "${eolstyle}" -o "${eolstyle}" != "native" ]; then
svn propset svn:eol-style native $file svn propset svn:eol-style native $file
fi fi
done done
} }
for file in `find OpenSim -name \*\.cs`; do EXTENSIONS="cs ini example txt sql"
set_eol_style $file
for ext in ${EXTENSIONS}; do
set_eol_style $ext
done done