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