File: apply-eol-style.sh

package info (click to toggle)
nexuiz-data 2.5.2-9
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 2,294,288 kB
  • sloc: ansic: 10,523; perl: 6,845; sh: 2,188; java: 1,417; xml: 969; lisp: 519; ruby: 136; makefile: 115
file content (14 lines) | stat: -rw-r--r-- 311 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh

while read -r EXT EOLSTYLE; do
	echo "Fixing $EXT..."
	find . -name .svn -prune -o -type f \( -name "*.$EXT" -o -name "$EXT" \) -print0 | \
		case "$EOLSTYLE" in
			1)
				xargs -0 svn propset svn:eol-style native
				;;
			0)
				xargs -0 svn propdel svn:eol-style
				;;
		esac
done <eol-style.txt