Extended svn:eol-style to check some other file types.
parent
27e0287526
commit
36a8f70931
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue