13 scripts/*.shader) echo "scripts/nexcompat-${1#scripts/}" ;;
21 scripts/nexcompat-*.shader) echo "scripts/${1#scripts/nexcompat-}" ;;
29 .gitattributes) return 0 ;;
30 scripts/nexcompat-trak4.shader) return 0 ;;
31 scripts/nexcompat-trak5.shader) return 0 ;;
32 scripts/nexcompat-eX.shader) return 0 ;;
33 textures/trak4/*) return 0 ;;
34 textures/trak5/*) return 0 ;;
35 textures/eX/*) return 0 ;;
47 font-*.pk3dir/*) return 1 ;;
51 models/player/*) return 1 ;;
52 models/weapons/*) return 1 ;;
53 *.modinfo) return 1 ;;
58 textures/carni*) return 1 ;;
59 textures/fb*) return 1 ;;
60 textures/fricka*) return 1 ;;
61 textures/grunt*) return 1 ;;
62 textures/headhunter*) return 1 ;;
63 textures/heroine*) return 1 ;;
64 textures/insurrectionist*) return 1 ;;
65 textures/lurk*) return 1 ;;
66 textures/lycanthrope*) return 1 ;;
67 textures/marine*) return 1 ;;
68 textures/mulder*) return 1 ;;
69 textures/nexgun*) return 1 ;;
70 textures/nexus*) return 1 ;;
71 textures/quark*) return 1 ;;
72 textures/shock*) return 1 ;;
73 textures/skadi*) return 1 ;;
74 textures/specop*) return 1 ;;
75 textures/uzi*) return 1 ;;
76 textures/xolar*) return 1 ;;
79 if ! [ -f "$NEXLOC/$1" ]; then
83 for f in "$XONLOC"/*/"$R" "$XONLOC"/*/"$1"; do
85 "$XONLOC"/\*/"$R") continue ;;
86 "$XONLOC"/xonotic-nexcompat.pk3dir/"$R") continue ;;
87 "$XONLOC"/\*/"$1") continue ;;
88 "$XONLOC"/xonotic-nexcompat.pk3dir/"$1") continue ;;
98 # 1. clear deleted files from the compat pack
101 git ls-files | while IFS= read -r L; do
102 if ignorefile "$L"; then
105 if ! wantfile "`unrewrite "$L"`"; then
117 # 2. add new files to the compat pack
118 echo "* -crlf" > .gitattributes
119 git add .gitattributes
120 find "$NEXLOC" -type f | while IFS= read -r L; do
122 echo "$UP$L0$KILL" >&2
124 if ignorefile "$LR"; then
127 if wantfile "$L0"; then
128 newhash=`cd "$NEXLOC"; git rev-parse ":data/$L0"`
129 if oldhash=`git rev-parse ":$LR" 2>/dev/null`; then
130 if [ x"$oldhash" != x"$newhash" ]; then