6 ISBINARY=" -diff -crlf"
11 eol=`cat .gitattributes`
12 find . -name .git -prune -o -name xonotic-nexcompat.pk3dir -prune -o \( -type f -print \) | {
13 unseen=`echo "$eol" | cut -d ' ' -f 1 | grep .`
15 while IFS= read -r LINE; do
28 t=`file -b --mime-type "$LINE"`
30 application/x-symlink)
33 text/*|application/xml|application/x-ruby)
40 unseen=`{ echo "$nam"; echo "$nam"; echo "$unseen"; } | sort | uniq -u`
41 case "$LF$eol$LF$neweol$LF" in
42 *$LF$nam$ISANYTHING*$LF*)
43 # ignore and treat as binary
45 *$LF$nam$ISBINARY*$LF*)
48 echo "WARNING: file $LINE is text, should be binary"
54 echo "WARNING: file $LINE is binary, should be text"
60 echo "NOTE: added new type TEXT for $LINE"
61 neweol="$neweol$LF$nam$ISTEXT"
63 echo "NOTE: added new type BINARY for $LINE"
64 neweol="$neweol$LF$nam$ISBINARY"
70 echo "not seen: $unseen"