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()
{
for file in $*; do
svn_status=`svn propget svn:eol-style $file`
if [ -z "${svn_status}" -o "${svn_status}" != "native" ]; then
IFS=$'\n'
for file in `find . -iname \*\.$1`; do
eolstyle=`svn propget svn:eol-style $file`
if [ -z "${eolstyle}" -o "${eolstyle}" != "native" ]; then
svn propset svn:eol-style native $file
fi
done
}
for file in `find OpenSim -name \*\.cs`; do
set_eol_style $file
EXTENSIONS="cs ini example txt sql"
for ext in ${EXTENSIONS}; do
set_eol_style $ext
done