]> icculus.org git repositories - divverent/nexuiz.git/blob - data/apply-eol-style.sh
git-svn-id: svn://svn.icculus.org/nexuiz/trunk@8573 f962a42d-fe04-0410-a3ab-8c8b0445ebaa
[divverent/nexuiz.git] / data / apply-eol-style.sh
1 #!/bin/sh
2
3 while read -r EXT EOLSTYLE; do
4         echo "Fixing $EXT..."
5         find . -name .svn -prune -o -type f \( -name "*.$EXT" -o -name "$EXT" \) -print0 | \
6                 case "$EOLSTYLE" in
7                         1)
8                                 xargs -0 svn propset svn:eol-style native
9                                 ;;
10                         0)
11                                 xargs -0 svn propdel svn:eol-style
12                                 ;;
13                 esac
14 done <eol-style.txt