Mother of god... I still had the sources for Nexuiz weapons and other things from...
[voretournament/voretournament.git] / data / build-compat-pack.sh
1 #!/bin/sh\r
2 \r
3 # list of files v2.4.2 clients need to play on svn servers\r
4 \r
5 COMPAT_FILES="\r
6         effectinfo.txt\r
7         gfx/crosshairtuba.tga\r
8         gfx/hud/inv_weapon0.tga\r
9         gfx/hud/inv_weapon10.tga\r
10         gfx/hud/inv_weapon11.tga\r
11         gfx/hud/inv_weapon12.tga\r
12         gfx/hud/inv_weapon13.tga\r
13         gfx/hud/inv_weapon14.tga\r
14         gfx/hud/inv_weapon1.tga\r
15         gfx/hud/inv_weapon2.tga\r
16         gfx/hud/inv_weapon3.tga\r
17         gfx/hud/inv_weapon4.tga\r
18         gfx/hud/inv_weapon5.tga\r
19         gfx/hud/inv_weapon6.tga\r
20         gfx/hud/inv_weapon7.tga\r
21         gfx/hud/inv_weapon8.tga\r
22         gfx/hud/inv_weapon9.tga\r
23         gfx/hud/inv_weapon_hlacmod_renameit.tga\r
24         gfx/hud/keys/key_backward_inv.tga\r
25         gfx/hud/keys/key_backward.tga\r
26         gfx/hud/keys/key_bg.tga\r
27         gfx/hud/keys/key_crouch_inv.tga\r
28         gfx/hud/keys/key_crouch.tga\r
29         gfx/hud/keys/key_forward_inv.tga\r
30         gfx/hud/keys/key_forward.tga\r
31         gfx/hud/keys/key_jump_inv.tga\r
32         gfx/hud/keys/key_jump.tga\r
33         gfx/hud/keys/key_left_inv.tga\r
34         gfx/hud/keys/key_left.tga\r
35         gfx/hud/keys/key_right_inv.tga\r
36         gfx/hud/keys/key_right.tga\r
37         gfx/hud/num_0_stroke.tga\r
38         gfx/hud/num_0.tga\r
39         gfx/hud/num_1_stroke.tga\r
40         gfx/hud/num_1.tga\r
41         gfx/hud/num_2_stroke.tga\r
42         gfx/hud/num_2.tga\r
43         gfx/hud/num_3_stroke.tga\r
44         gfx/hud/num_3.tga\r
45         gfx/hud/num_4_stroke.tga\r
46         gfx/hud/num_4.tga\r
47         gfx/hud/num_5_stroke.tga\r
48         gfx/hud/num_5.tga\r
49         gfx/hud/num_6_stroke.tga\r
50         gfx/hud/num_6.tga\r
51         gfx/hud/num_7_stroke.tga\r
52         gfx/hud/num_7.tga\r
53         gfx/hud/num_8_stroke.tga\r
54         gfx/hud/num_8.tga\r
55         gfx/hud/num_9_stroke.tga\r
56         gfx/hud/num_9.tga\r
57         gfx/hud/num_colon_stroke.tga\r
58         gfx/hud/num_colon.tga\r
59         gfx/hud/num_dot_stroke.tga\r
60         gfx/hud/num_dot.tga\r
61         gfx/hud/num_minus_stroke.tga\r
62         gfx/hud/num_minus.tga\r
63         gfx/hud/num_plus_stroke.tga\r
64         gfx/hud/num_plus.tga\r
65         gfx/hud/rifle_ring_1.tga\r
66         gfx/hud/rifle_ring_2.tga\r
67         gfx/hud/rifle_ring_3.tga\r
68         gfx/hud/rifle_ring_4.tga\r
69         gfx/hud/rifle_ring_5.tga\r
70         gfx/hud/rifle_ring_6.tga\r
71         gfx/hud/rifle_ring_7.tga\r
72         gfx/hud/rifle_ring_8.tga\r
73         gfx/hud/sb_accuracy.tga\r
74         gfx/hud/sb_ammobg.tga\r
75         gfx/hud/sb_armor.tga\r
76         gfx/hud/sbar.tga\r
77         gfx/hud/sb_bullets.tga\r
78         gfx/hud/sb_cells.tga\r
79         gfx/hud/sb_flag_blue_carrying.tga\r
80         gfx/hud/sb_flag_blue_lost.tga\r
81         gfx/hud/sb_flag_blue_shielded.tga\r
82         gfx/hud/sb_flag_blue_taken.tga\r
83         gfx/hud/sb_flag_red_carrying.tga\r
84         gfx/hud/sb_flag_red_lost.tga\r
85         gfx/hud/sb_flag_red_shielded.tga\r
86         gfx/hud/sb_flag_red_taken.tga\r
87         gfx/hud/sb_fuel.tga\r
88         gfx/hud/sb_health.tga\r
89         gfx/hud/sb_highlight_1.tga\r
90         gfx/hud/sb_highlight_2.tga\r
91         gfx/hud/sb_highlight_3.tga\r
92         gfx/hud/sb_highlight_4.tga\r
93         gfx/hud/sb_invinc.tga\r
94         gfx/hud/sb_kh_blue.tga\r
95         gfx/hud/sb_kh_pink.tga\r
96         gfx/hud/sb_kh_red.tga\r
97         gfx/hud/sb_kh_yellow.tga\r
98         gfx/hud/sb_nexball_carrying.tga\r
99         gfx/hud/sb_rocket.tga\r
100         gfx/hud/sb_scoreboard_bg.tga\r
101         gfx/hud/sb_scoreboard_tableheader.tga\r
102         gfx/hud/sb_shells.tga\r
103         gfx/hud/sb_str.tga\r
104         gfx/hud/sb_timerbg.tga\r
105         models/ctf/shield.md3\r
106         models/ctf/shockwavetransring.md3\r
107         models/gibs/arm.md3\r
108         models/gibs/arm.md3_0.skin\r
109         models/gibs/arm.md3_1.skin\r
110         models/gibs/arm.md3_2.skin\r
111         models/gibs/bloodyskull.md3\r
112         models/gibs/bloodyskull.md3_0.skin\r
113         models/gibs/bloodyskull.md3_1.skin\r
114         models/gibs/bloodyskull.md3_2.skin\r
115         models/gibs/chest.md3\r
116         models/gibs/chest.md3_0.skin\r
117         models/gibs/chest.md3_1.skin\r
118         models/gibs/chest.md3_2.skin\r
119         models/gibs/chunk.mdl\r
120         models/gibs/eye.md3\r
121         models/gibs/leg1.md3\r
122         models/gibs/leg1.md3_0.skin\r
123         models/gibs/leg1.md3_1.skin\r
124         models/gibs/leg1.md3_2.skin\r
125         models/gibs/leg2.md3\r
126         models/gibs/leg2.md3_0.skin\r
127         models/gibs/leg2.md3_1.skin\r
128         models/gibs/leg2.md3_2.skin\r
129         models/gibs/smallchest.md3\r
130         models/gibs/smallchest.md3_0.skin\r
131         models/gibs/smallchest.md3_1.skin\r
132         models/gibs/smallchest.md3_2.skin\r
133         models/nexball/ball.md3\r
134         models/onslaught/boom.md3\r
135         models/onslaught/controlpoint_icon_dmg1.md3\r
136         models/onslaught/controlpoint_icon_dmg2.md3\r
137         models/onslaught/controlpoint_icon_dmg3.md3\r
138         models/onslaught/controlpoint_icon_gib1.md3\r
139         models/onslaught/controlpoint_icon_gib2.md3\r
140         models/onslaught/controlpoint_icon_gib4.md3\r
141         models/onslaught/controlpoint_pad2.md3\r
142         models/onslaught/generator_dead.md3\r
143         models/onslaught/generator_dmg1.md3\r
144         models/onslaught/generator_dmg2.md3\r
145         models/onslaught/generator_dmg3.md3\r
146         models/onslaught/generator_dmg4.md3\r
147         models/onslaught/generator_dmg5.md3\r
148         models/onslaught/generator_dmg6.md3\r
149         models/onslaught/generator_dmg7.md3\r
150         models/onslaught/generator_dmg8.md3\r
151         models/onslaught/generator_dmg9.md3\r
152         models/onslaught/gen_gib1.md3\r
153         models/onslaught/gen_gib2.md3\r
154         models/onslaught/gen_gib3.md3\r
155         models/onslaught/ons_ray.md3\r
156         models/onslaught/shockwave.md3\r
157         models/onslaught/shockwavetransring.md3\r
158         models/sprites/as-defend_frame0.tga\r
159         models/sprites/as-destroy_frame0.tga\r
160         models/sprites/as-push_frame0.tga\r
161         models/sprites/bluebase_frame0.tga\r
162         models/sprites/bluebase.tga\r
163         models/sprites/danger_frame0.tga\r
164         models/sprites/danger.tga\r
165         models/sprites/defend.tga\r
166         models/sprites/destroy.tga\r
167         models/sprites/dom-blue_frame0.tga\r
168         models/sprites/dom-neut_frame0.tga\r
169         models/sprites/dom-pink_frame0.tga\r
170         models/sprites/dom-red_frame0.tga\r
171         models/sprites/dom-yellow_frame0.tga\r
172         models/sprites/flagcarrier_frame0.tga\r
173         models/sprites/flagcarrier.tga\r
174         models/sprites/helpme_frame0.tga\r
175         models/sprites/helpme.tga\r
176         models/sprites/here_frame0.tga\r
177         models/sprites/here.tga\r
178         models/sprites/item-extralife_frame0.tga\r
179         models/sprites/item-extralife_frame1.tga\r
180         models/sprites/item-fuelregen_frame0.tga\r
181         models/sprites/item-fuelregen_frame1.tga\r
182         models/sprites/item-invis_frame0.tga\r
183         models/sprites/item-invis_frame1.tga\r
184         models/sprites/item-jetpack_frame0.tga\r
185         models/sprites/item-jetpack_frame1.tga\r
186         models/sprites/item-shield_frame0.tga\r
187         models/sprites/item-shield_frame1.tga\r
188         models/sprites/item-speed_frame0.tga\r
189         models/sprites/item-speed_frame1.tga\r
190         models/sprites/item-strength_frame0.tga\r
191         models/sprites/item-strength_frame1.tga\r
192         models/sprites/keycarrier-blue_frame0.tga\r
193         models/sprites/keycarrier-blue.tga\r
194         models/sprites/keycarrier-finish_frame0.tga\r
195         models/sprites/keycarrier-finish.tga\r
196         models/sprites/keycarrier-friend_frame0.tga\r
197         models/sprites/keycarrier-friend.tga\r
198         models/sprites/keycarrier-pink_frame0.tga\r
199         models/sprites/keycarrier-pink.tga\r
200         models/sprites/keycarrier-red_frame0.tga\r
201         models/sprites/keycarrier-red.tga\r
202         models/sprites/keycarrier-yellow_frame0.tga\r
203         models/sprites/keycarrier-yellow.tga\r
204         models/sprites/key-dropped_frame0.tga\r
205         models/sprites/key-dropped.tga\r
206         models/sprites/nb-ball_frame0.tga\r
207         models/sprites/ons-cp-atck-blue_frame0.tga\r
208         models/sprites/ons-cp-atck-blue_frame1.tga\r
209         models/sprites/ons-cp-atck-neut_frame0.tga\r
210         models/sprites/ons-cp-atck-neut_frame1.tga\r
211         models/sprites/ons-cp-atck-red_frame0.tga\r
212         models/sprites/ons-cp-atck-red_frame1.tga\r
213         models/sprites/ons-cp-blue_frame0.tga\r
214         models/sprites/ons-cp-blue.tga\r
215         models/sprites/ons-cp-dfnd-blue_frame0.tga\r
216         models/sprites/ons-cp-dfnd-blue_frame1.tga\r
217         models/sprites/ons-cp-dfnd-red_frame0.tga\r
218         models/sprites/ons-cp-dfnd-red_frame1.tga\r
219         models/sprites/ons-cp-neut_frame0.tga\r
220         models/sprites/ons-cp-neut.tga\r
221         models/sprites/ons-cp-red_frame0.tga\r
222         models/sprites/ons-cp-red.tga\r
223         models/sprites/ons-gen-blue_frame0.tga\r
224         models/sprites/ons-gen-blue.tga\r
225         models/sprites/ons-gen-red_frame0.tga\r
226         models/sprites/ons-gen-red.tga\r
227         models/sprites/ons-gen-shielded_frame0.tga\r
228         models/sprites/ons-gen-shielded.tga\r
229         models/sprites/push.tga\r
230         models/sprites/race-checkpoint_frame0.tga\r
231         models/sprites/race-checkpoint.tga\r
232         models/sprites/race-finish_frame0.tga\r
233         models/sprites/race-finish.tga\r
234         models/sprites/race-start_frame0.tga\r
235         models/sprites/redbase_frame0.tga\r
236         models/sprites/redbase.tga\r
237         models/sprites/waypoint_frame0.tga\r
238         models/sprites/waypoint.tga\r
239         models/sprites/wpn-campingrifle_frame0.tga\r
240         models/sprites/wpn-crylink_frame0.tga\r
241         models/sprites/wpn-electro_frame0.tga\r
242         models/sprites/wpn-gl_frame0.tga\r
243         models/sprites/wpn-hagar_frame0.tga\r
244         models/sprites/wpn-hlac_frame0.tga\r
245         models/sprites/wpn-hookgun_frame0.tga\r
246         models/sprites/wpn-laser_frame0.tga\r
247         models/sprites/wpn-minstanex_frame0.tga\r
248         models/sprites/wpn-nex_frame0.tga\r
249         models/sprites/wpn-porto_frame0.tga\r
250         models/sprites/wpn-rl_frame0.tga\r
251         models/sprites/wpn-shotgun_frame0.tga\r
252         models/sprites/wpn-uzi_frame0.tga\r
253         models/weapons/g_tuba.md3\r
254         models/weapons/h_tuba.dpm\r
255         models/weapons/v_tuba.md3\r
256         particles/particlefont.tga\r
257         scripts/onslaught.shader\r
258         scripts/tuba.shader\r
259         sound/announcer/male/amazing.ogg\r
260         sound/announcer/male/awesome.ogg\r
261         sound/ctf/blue_capture.wav\r
262         sound/ctf/blue_dropped.wav\r
263         sound/ctf/blue_returned.wav\r
264         sound/ctf/blue_taken.wav\r
265         sound/ctf/flag_respawn.wav\r
266         sound/ctf/red_capture.wav\r
267         sound/ctf/red_dropped.wav\r
268         sound/ctf/red_returned.wav\r
269         sound/ctf/red_taken.wav\r
270         sound/misc/armor10.wav\r
271         sound/misc/armor17_5.wav\r
272         sound/misc/armor1.wav\r
273         sound/misc/armor25.wav\r
274         sound/misc/itemrespawncountdown.ogg\r
275         sound/misc/poweroff.wav\r
276         sound/misc/powerup.ogg\r
277         sound/misc/shield_respawn.wav\r
278         sound/misc/strength_respawn.wav\r
279         sound/nexball/bounce.ogg\r
280         sound/nexball/drop.ogg\r
281         sound/nexball/shoot1.wav\r
282         sound/nexball/shoot2.ogg\r
283         sound/nexball/steal.ogg\r
284         sound/onslaught/electricity_explode.ogg\r
285         sound/onslaught/ons_hit1.ogg\r
286         sound/onslaught/ons_hit2.ogg\r
287         sound/onslaught/ons_spark1.ogg\r
288         sound/onslaught/ons_spark2.ogg\r
289         sound/onslaught/shockwave.ogg\r
290         sound/player/pyria-skadi/coms/needhelp2.ogg\r
291         sound/weapons/nexwhoosh1.ogg\r
292         sound/weapons/nexwhoosh2.ogg\r
293         sound/weapons/nexwhoosh3.ogg\r
294         sound/weapons/tuba_note0.ogg\r
295         sound/weapons/tuba_note-10.ogg\r
296         sound/weapons/tuba_note10.ogg\r
297         sound/weapons/tuba_note-11.ogg\r
298         sound/weapons/tuba_note11.ogg\r
299         sound/weapons/tuba_note-12.ogg\r
300         sound/weapons/tuba_note12.ogg\r
301         sound/weapons/tuba_note-13.ogg\r
302         sound/weapons/tuba_note13.ogg\r
303         sound/weapons/tuba_note-14.ogg\r
304         sound/weapons/tuba_note14.ogg\r
305         sound/weapons/tuba_note-15.ogg\r
306         sound/weapons/tuba_note15.ogg\r
307         sound/weapons/tuba_note-16.ogg\r
308         sound/weapons/tuba_note16.ogg\r
309         sound/weapons/tuba_note-17.ogg\r
310         sound/weapons/tuba_note17.ogg\r
311         sound/weapons/tuba_note-18.ogg\r
312         sound/weapons/tuba_note18.ogg\r
313         sound/weapons/tuba_note19.ogg\r
314         sound/weapons/tuba_note-1.ogg\r
315         sound/weapons/tuba_note1.ogg\r
316         sound/weapons/tuba_note20.ogg\r
317         sound/weapons/tuba_note21.ogg\r
318         sound/weapons/tuba_note22.ogg\r
319         sound/weapons/tuba_note23.ogg\r
320         sound/weapons/tuba_note24.ogg\r
321         sound/weapons/tuba_note25.ogg\r
322         sound/weapons/tuba_note26.ogg\r
323         sound/weapons/tuba_note27.ogg\r
324         sound/weapons/tuba_note-2.ogg\r
325         sound/weapons/tuba_note2.ogg\r
326         sound/weapons/tuba_note-3.ogg\r
327         sound/weapons/tuba_note3.ogg\r
328         sound/weapons/tuba_note-4.ogg\r
329         sound/weapons/tuba_note4.ogg\r
330         sound/weapons/tuba_note-5.ogg\r
331         sound/weapons/tuba_note5.ogg\r
332         sound/weapons/tuba_note-6.ogg\r
333         sound/weapons/tuba_note6.ogg\r
334         sound/weapons/tuba_note-7.ogg\r
335         sound/weapons/tuba_note7.ogg\r
336         sound/weapons/tuba_note-8.ogg\r
337         sound/weapons/tuba_note8.ogg\r
338         sound/weapons/tuba_note-9.ogg\r
339         sound/weapons/tuba_note9.ogg\r
340         sound/weapons/unavailable.wav\r
341         sound/weapons/weaponpickup.ogg\r
342         textures/bloodyskull_alien_glow.tga\r
343         textures/bloodyskull_alien.tga\r
344         textures/bloodyskull.jpg\r
345         textures/bloodyskull_robot_gloss.tga\r
346         textures/bloodyskull_robot_glow.tga\r
347         textures/bloodyskull_robot.tga\r
348         textures/generator_destroyed.tga\r
349         textures/generator_lightning2.tga\r
350         textures/generator_lightning.tga\r
351         textures/generator.tga\r
352         textures/meat_alien_gloss.tga\r
353         textures/meat_alien_glow.tga\r
354         textures/meat_alien_norm.tga\r
355         textures/meat_alien.tga\r
356         textures/meat_gloss.tga\r
357         textures/meat_norm.tga\r
358         textures/meat_robot_gloss.tga\r
359         textures/meat_robot_glow.tga\r
360         textures/meat_robot_norm.tga\r
361         textures/meat_robot.tga\r
362         textures/meat.tga\r
363         textures/nexball/ball_gloss.tga\r
364         textures/nexball/ball_norm.tga\r
365         textures/nexball/ball.tga\r
366         textures/ons_boom1.tga\r
367         textures/ons_gengib.tga\r
368         textures/ons_icon.tga\r
369         textures/ons_icon_thrust.tga\r
370         textures/ons_pad.tga\r
371         textures/ons_ray.tga\r
372         textures/ons_shockwave1.tga\r
373         textures/ons_shockwave2.tga\r
374         textures/ons_smoke1.tga\r
375         textures/ons_text.tga\r
376         textures/tuba_gloss.tga\r
377         textures/tuba_glow.tga\r
378         textures/tuba.tga\r
379         sound/weapons/fireball_fire2.wav\r
380         sound/weapons/fireball_fire.wav\r
381         sound/weapons/fireball_fly2.wav\r
382         sound/weapons/fireball_fly.wav\r
383         sound/weapons/fireball_impact2.wav\r
384         sound/weapons/fireball_prefire2.wav\r
385         models/weapons/g_fireball.md3\r
386         models/weapons/h_fireball.dpm\r
387         models/weapons/h_fireball.dpm.framegroups\r
388         models/weapons/v_fireball.md3\r
389         textures/fireball_gloss.tga\r
390         textures/fireball_glow.tga\r
391         textures/fireball.tga\r
392         models/sphere/sphere.md3\r
393         models/sphere/sphere.tga\r
394         textures/nutsandbolts1_gloss.tga\r
395         textures/nutsandbolts1.tga\r
396         textures/nutsandbolts3_gloss.tga\r
397         textures/nutsandbolts3.tga\r
398         textures/nutsandbolts4_gloss.tga\r
399         textures/nutsandbolts4.tga\r
400         textures/nutsandbolts5_gloss.tga\r
401         textures/nutsandbolts5.tga\r
402         models/gibs/robo1.md3\r
403         models/gibs/robo1.md3_0.skin\r
404         models/gibs/robo1.md3_1.skin\r
405         models/gibs/robo2.md3\r
406         models/gibs/robo2.md3_0.skin\r
407         models/gibs/robo2.md3_1.skin\r
408         models/gibs/robo3.md3\r
409         models/gibs/robo3.md3_0.skin\r
410         models/gibs/robo3.md3_1.skin\r
411         models/gibs/robo4.md3\r
412         models/gibs/robo4.md3_0.skin\r
413         models/gibs/robo4.md3_1.skin\r
414         models/gibs/robo5.md3\r
415         models/gibs/robo6.md3\r
416         models/gibs/robo7.md3\r
417         models/gibs/robo7.md3_0.skin\r
418         models/gibs/robo7.md3_1.skin\r
419         models/gibs/robo8.md3\r
420         models/gibs/robo8.md3_0.skin\r
421         models/gibs/robo8.md3_1.skin\r
422         models/gibs/robo.md3\r
423         models/gibs/robo.md3_0.skin\r
424         models/gibs/robo.md3_1.skin\r
425 "\r
426 \r
427 rm -rf pack\r
428 mkdir pack\r
429 for F in $COMPAT_FILES; do\r
430         case "$F" in\r
431                 */*)\r
432                         mkdir -p pack/${F%/*}\r
433                         ;;\r
434         esac\r
435         cp "$F" pack/"$F"\r
436 done\r
437 \r
438 cd pack\r
439 \r
440 find textures/ -type f -print0 | qual=85 scaledown=256x256 xargs -0 ../../misc/tools/jpeg-if-not-alpha.sh\r
441 \r
442 if false; then\r
443         find . -name \*.ogg | while IFS= read -r NAME; do\r
444                 c=`vorbiscomment -l "$NAME"`\r
445                 oggdec -o "$NAME.wav" "$NAME"\r
446                 oggenc -q 0 -o "$NAME" "$NAME.wav"\r
447                 echo "$c" | vorbiscomment -w "$NAME"\r
448                 rm -f "$NAME.wav"\r
449                 touch "${NAME%.ogg}.wav" # to disable this file, should the client have it\r
450         done\r
451 fi\r
452 \r
453 rev=`svnversion .. | sed 's/M$//g; s/.*://g;'`\r
454 pack="zzz_svn-compat-$rev"\r
455 echo "Support files to play on svn servers of revision $rev" > "$pack.txt"\r
456 7za a -tzip -mx=9 "../$pack.pk3" .\r
457 rm -f "$pack.txt"\r
458 \r
459 cd ..\r
460 rm -rf pack\r