2007-10-25 15:44:38 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
2007-12-15 02:36:31 +00:00
|
|
|
set_eol_style()
|
|
|
|
{
|
2007-12-20 01:01:42 +00:00
|
|
|
IFS=$'\n'
|
|
|
|
for file in `find . -iname \*\.$1`; do
|
|
|
|
eolstyle=`svn propget svn:eol-style $file`
|
|
|
|
if [ -z "${eolstyle}" -o "${eolstyle}" != "native" ]; then
|
2007-12-15 02:36:31 +00:00
|
|
|
svn propset svn:eol-style native $file
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
}
|
2007-10-25 15:44:38 +00:00
|
|
|
|
2007-12-29 11:32:02 +00:00
|
|
|
EXTENSIONS="cs ini example txt sql xml"
|
2007-12-20 01:01:42 +00:00
|
|
|
|
|
|
|
for ext in ${EXTENSIONS}; do
|
|
|
|
set_eol_style $ext
|
2007-12-15 02:36:31 +00:00
|
|
|
done
|