13 scripts/*.shader) echo "scripts/nexcompat-${1#scripts/}" ;;
21 scripts/nexcompat-*.shader) echo "scripts/${1#scripts/nexcompat-}" ;;
33 font-*.pk3dir/*) return 1 ;;
37 models/player/*) return 1 ;;
38 models/weapons/*) return 1 ;;
39 *.modinfo) return 1 ;;
44 textures/carni*) return 1 ;;
45 textures/fb*) return 1 ;;
46 textures/fricka*) return 1 ;;
47 textures/grunt*) return 1 ;;
48 textures/headhunter*) return 1 ;;
49 textures/heroine*) return 1 ;;
50 textures/insurrectionist*) return 1 ;;
51 textures/lurk*) return 1 ;;
52 textures/lycanthrope*) return 1 ;;
53 textures/marine*) return 1 ;;
54 textures/mulder*) return 1 ;;
55 textures/nexgun*) return 1 ;;
56 textures/nexus*) return 1 ;;
57 textures/quark*) return 1 ;;
58 textures/shock*) return 1 ;;
59 textures/skadi*) return 1 ;;
60 textures/specop*) return 1 ;;
61 textures/uzi*) return 1 ;;
62 textures/xolar*) return 1 ;;
65 if ! [ -f "$NEXLOC/$1" ]; then
69 for f in "$XONLOC"/*/"$R" "$XONLOC"/*/"$1"; do
71 "$XONLOC"/\*/"$R") continue ;;
72 "$XONLOC"/xonotic-nexcompat.pk3dir/"$R") continue ;;
73 "$XONLOC"/\*/"$1") continue ;;
74 "$XONLOC"/xonotic-nexcompat.pk3dir/"$1") continue ;;
84 # 1. clear deleted files from the compat pack
87 git ls-files | while IFS= read -r L; do
89 .gitattributes) continue ;;
91 if ! wantfile "`unrewrite "$L"`"; then
103 # 2. add new files to the compat pack
104 echo "* -crlf" > .gitattributes
105 git add .gitattributes
106 find "$NEXLOC" -type f | while IFS= read -r L; do
108 echo "$UP$L0$KILL" >&2
110 if wantfile "$L0"; then
111 newhash=`cd "$NEXLOC"; git rev-parse ":data/$L0"`
112 if oldhash=`git rev-parse ":$LR" 2>/dev/null`; then
113 if [ x"$oldhash" != x"$newhash" ]; then