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