Display number of extralives taken in LMS and Instagib in the centerprint message
[xonotic/xonotic-data.pk3dir.git] / find-eol-style.sh
1 #!/bin/bash
2
3 allstatus=$(
4         find . -name .svn -prune -o -type f -print | while IFS= read -r LINE; do
5                 ext=${LINE##*/}
6                 ext=${ext##*.}
7                 if s=`svn propget svn:eol-style "$LINE"`; then
8                         case "$s" in
9                                 *native*)
10                                         echo "$ext 1"
11                                         ;;
12                                 *)
13                                         echo "$ext 0"
14                                         ;;
15                         esac
16                 fi
17         done | sort -u
18 )
19
20 mixed=`echo "$allstatus" | rev | cut -c 3- | rev | uniq -d`
21 if [ -n "$mixed" ]; then
22         echo "The following file extensions need to be manually fixed:"
23         echo "$mixed"
24         exit 1
25 fi
26
27 echo "$allstatus" > eol-style.txt