]> icculus.org git repositories - divverent/nexuiz.git/blob - data/build-compat-pack.sh
more tuba stuff :P now with a glow texture
[divverent/nexuiz.git] / data / build-compat-pack.sh
1 #!/bin/sh
2
3 # list of files v2.4.2 clients need to play on svn servers
4
5 COMPAT_FILES="
6         effectinfo.txt
7         models/gibs/arm.md3
8         models/gibs/arm.md3_0.skin
9         models/gibs/arm.md3_1.skin
10         models/gibs/arm.md3_2.skin
11         models/gibs/bloodyskull.md3
12         models/gibs/bloodyskull.md3_0.skin
13         models/gibs/bloodyskull.md3_1.skin
14         models/gibs/bloodyskull.md3_2.skin
15         models/gibs/chest.md3
16         models/gibs/chest.md3_0.skin
17         models/gibs/chest.md3_1.skin
18         models/gibs/chest.md3_2.skin
19         models/gibs/chunk.mdl
20         models/gibs/eye.md3
21         models/gibs/leg1.md3
22         models/gibs/leg1.md3_0.skin
23         models/gibs/leg1.md3_1.skin
24         models/gibs/leg1.md3_2.skin
25         models/gibs/leg2.md3
26         models/gibs/leg2.md3_0.skin
27         models/gibs/leg2.md3_1.skin
28         models/gibs/leg2.md3_2.skin
29         models/gibs/smallchest.md3
30         models/gibs/smallchest.md3_0.skin
31         models/gibs/smallchest.md3_1.skin
32         models/gibs/smallchest.md3_2.skin
33         models/onslaught/boom.md3
34         models/onslaught/controlpoint_icon_dmg1.md3
35         models/onslaught/controlpoint_icon_dmg2.md3
36         models/onslaught/controlpoint_icon_dmg3.md3
37         models/onslaught/controlpoint_icon_gib1.md3
38         models/onslaught/controlpoint_icon_gib2.md3
39         models/onslaught/controlpoint_icon_gib4.md3
40         models/onslaught/controlpoint_pad2.md3
41         models/onslaught/generator_dead.md3
42         models/onslaught/generator_dmg1.md3
43         models/onslaught/generator_dmg2.md3
44         models/onslaught/generator_dmg3.md3
45         models/onslaught/generator_dmg4.md3
46         models/onslaught/generator_dmg5.md3
47         models/onslaught/generator_dmg6.md3
48         models/onslaught/generator_dmg7.md3
49         models/onslaught/generator_dmg8.md3
50         models/onslaught/generator_dmg9.md3
51         models/onslaught/gen_gib1.md3
52         models/onslaught/gen_gib2.md3
53         models/onslaught/gen_gib3.md3
54         models/onslaught/ons_ray.md3
55         models/onslaught/shockwave.md3
56         models/onslaught/shockwavetransring.md3
57         models/sprites/item-extralife_frame0.tga
58         models/sprites/item-extralife_frame1.tga
59         models/sprites/item-fuelregen_frame0.tga
60         models/sprites/item-fuelregen_frame1.tga
61         models/sprites/item-invis_frame0.tga
62         models/sprites/item-invis_frame1.tga
63         models/sprites/item-jetpack_frame0.tga
64         models/sprites/item-jetpack_frame1.tga
65         models/sprites/item-shield_frame0.tga
66         models/sprites/item-shield_frame1.tga
67         models/sprites/item-speed_frame0.tga
68         models/sprites/item-speed_frame1.tga
69         models/sprites/item-strength_frame0.tga
70         models/sprites/item-strength_frame1.tga
71         particles/particlefont.tga
72         scripts/onslaught.shader
73         sound/announcer/male/amazing.ogg
74         sound/announcer/male/awesome.ogg
75         sound/ctf/blue_capture.wav
76         sound/ctf/blue_dropped.wav
77         sound/ctf/blue_returned.wav
78         sound/ctf/blue_taken.wav
79         sound/ctf/flag_respawn.wav
80         sound/ctf/red_capture.wav
81         sound/ctf/red_dropped.wav
82         sound/ctf/red_returned.wav
83         sound/ctf/red_taken.wav
84         sound/misc/armor10.wav
85         sound/misc/armor17_5.wav
86         sound/misc/armor1.wav
87         sound/misc/armor25.wav
88         sound/misc/itemrespawncountdown.ogg
89         sound/misc/poweroff.wav
90         sound/misc/powerup.ogg
91         sound/misc/shield_respawn.wav
92         sound/misc/strength_respawn.wav
93         sound/onslaught/electricity_explode.ogg
94         sound/onslaught/ons_hit1.ogg
95         sound/onslaught/ons_hit2.ogg
96         sound/onslaught/ons_spark1.ogg
97         sound/onslaught/ons_spark2.ogg
98         sound/onslaught/shockwave.ogg
99         sound/player/pyria-skadi/coms/needhelp2.ogg
100         sound/weapons/unavailable.wav
101         sound/weapons/weaponpickup.ogg
102         textures/bloodyskull_alien_glow.tga
103         textures/bloodyskull_alien.tga
104         textures/bloodyskull.jpg
105         textures/bloodyskull_robot_gloss.tga
106         textures/bloodyskull_robot_glow.tga
107         textures/bloodyskull_robot.tga
108         textures/generator_destroyed.tga
109         textures/generator_lightning2.tga
110         textures/generator_lightning.tga
111         textures/generator.tga
112         textures/meat_alien_gloss.tga
113         textures/meat_alien_glow.tga
114         textures/meat_alien_norm.tga
115         textures/meat_alien.tga
116         textures/meat_gloss.tga
117         textures/meat_norm.tga
118         textures/meat_robot_gloss.tga
119         textures/meat_robot_glow.tga
120         textures/meat_robot_norm.tga
121         textures/meat_robot.tga
122         textures/meat.tga
123         textures/ons_boom1.tga
124         textures/ons_gengib.tga
125         textures/ons_icon.tga
126         textures/ons_icon_thrust.tga
127         textures/ons_pad.tga
128         textures/ons_ray.tga
129         textures/ons_shockwave1.tga
130         textures/ons_shockwave2.tga
131         textures/ons_smoke1.tga
132         textures/ons_text.tga
133 "
134
135 rm -rf pack
136 mkdir pack
137 for F in $COMPAT_FILES; do
138         case "$F" in
139                 */*)
140                         mkdir -p pack/${F%/*}
141                         ;;
142         esac
143         cp "$F" pack/"$F"
144 done
145
146 cd pack
147
148 find textures/ -type f -print0 | qual=85 scaledown=256x256 xargs -0 ../../misc/tools/jpeg-if-not-alpha.sh
149
150 if false; then
151         find . -name \*.ogg | while IFS= read -r NAME; do
152                 c=`vorbiscomment -l "$NAME"`
153                 oggdec -o "$NAME.wav" "$NAME"
154                 oggenc -q 0 -o "$NAME" "$NAME.wav"
155                 echo "$c" | vorbiscomment -w "$NAME"
156                 rm -f "$NAME.wav"
157                 touch "${NAME%.ogg}.wav" # to disable this file, should the client have it
158         done
159 fi
160
161 rev=`svnversion .. | sed 's/M$//g; s/.*://g;'`
162 pack="zzz_svn-compat-$rev"
163 echo "Support files to play on svn servers of revision $rev" > "$pack.txt"
164 7za a -tzip -mx=9 "../$pack.pk3" .
165 rm -f "$pack.txt"
166
167 cd ..
168 rm -rf pack