X-Git-Url: https://git.xonotic.org/?p=xonotic%2Fxonotic.git;a=blobdiff_plain;f=check-gitattributes.sh;h=bb3022c4cf29ff9512026bf84ba9c81ec97a7e21;hp=e461a7cfb8b25e98e46323fb3347904b68be5aa3;hb=c6297696eda1a5a66f2d25b1358e2b21898ab3ea;hpb=955bb976423e7bd74eba8ec2c2e45c9384a43ae7 diff --git a/check-gitattributes.sh b/check-gitattributes.sh index e461a7cf..bb3022c4 100755 --- a/check-gitattributes.sh +++ b/check-gitattributes.sh @@ -9,14 +9,20 @@ ISTEXT=" crlf=input" LF=" " eol=`cat .gitattributes` -find . -name .git -prune -o \( -type f -print \) | { +find . -name .git -prune -o -name xonotic-nexcompat.pk3dir -prune -o \( -type f -print \) | { unseen=`echo "$eol" | cut -d ' ' -f 1 | grep .` neweol= while IFS= read -r LINE; do nam=${LINE##*/} case "$nam" in + *.txt.*) + nam="*.txt.*" + ;; + *.db.*) + nam="*.db.*" + ;; *.*) - nam=*.${nam##*.} + nam="*.${nam##*.}" ;; esac t=`file -b --mime-type "$LINE"`