]> icculus.org git repositories - divverent/nexuiz.git/blob - data/build-compat-pack.sh
remove unused video file
[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         sound/announcer/male/amazing.ogg
8         sound/announcer/male/awesome.ogg
9         sound/misc/shield_respawn.wav
10         sound/misc/strength_respawn.wav
11         sound/player/pyria-skadi/coms/needhelp2.ogg
12         sound/weapons/unavailable.wav
13         sound/ctf/blue_dropped.wav
14         sound/ctf/red_dropped.wav
15         sound/ctf/flag_respawn.wav
16         sound/ctf/blue_taken.wav
17         sound/ctf/blue_capture.wav
18         sound/ctf/red_taken.wav
19         sound/ctf/red_capture.wav
20         sound/ctf/blue_returned.wav
21         sound/ctf/red_returned.wav
22         sound/misc/itemrespawncountdown.ogg
23         sound/misc/armor25.wav
24         sound/misc/powerup.ogg
25         sound/misc/armor17_5.wav
26         sound/misc/armor10.wav
27         sound/misc/armor1.wav
28         sound/misc/poweroff.wav
29         scripts/onslaught.shader
30         models/sprites/item-extralife_frame0.tga
31         models/sprites/item-extralife_frame1.tga
32         models/sprites/item-fuelregen_frame0.tga
33         models/sprites/item-fuelregen_frame1.tga
34         models/sprites/item-invis_frame0.tga
35         models/sprites/item-invis_frame1.tga
36         models/sprites/item-jetpack_frame0.tga
37         models/sprites/item-jetpack_frame1.tga
38         models/sprites/item-shield_frame0.tga
39         models/sprites/item-shield_frame1.tga
40         models/sprites/item-speed_frame0.tga
41         models/sprites/item-speed_frame1.tga
42         models/sprites/item-strength_frame0.tga
43         models/sprites/item-strength_frame1.tga
44         sound/weapons/weaponpickup.ogg
45         particles/particlefont.tga
46         models/gibs/arm.md3
47         models/gibs/arm.md3_0.skin
48         models/gibs/arm.md3_1.skin
49         models/gibs/arm.md3_2.skin
50         models/gibs/bloodyskull.md3
51         models/gibs/bloodyskull.md3_0.skin
52         models/gibs/bloodyskull.md3_1.skin
53         models/gibs/bloodyskull.md3_2.skin
54         models/gibs/chest.md3
55         models/gibs/chest.md3_0.skin
56         models/gibs/chest.md3_1.skin
57         models/gibs/chest.md3_2.skin
58         models/gibs/chunk.mdl
59         models/gibs/eye.md3
60         models/gibs/leg1.md3
61         models/gibs/leg1.md3_0.skin
62         models/gibs/leg1.md3_1.skin
63         models/gibs/leg1.md3_2.skin
64         models/gibs/leg2.md3
65         models/gibs/leg2.md3_0.skin
66         models/gibs/leg2.md3_1.skin
67         models/gibs/leg2.md3_2.skin
68         models/gibs/smallchest.md3
69         models/gibs/smallchest.md3_0.skin
70         models/gibs/smallchest.md3_1.skin
71         models/gibs/smallchest.md3_2.skin
72         textures/meat_alien_gloss.tga
73         textures/meat_alien_glow.tga
74         textures/meat_alien_norm.tga
75         textures/meat_alien.tga
76         textures/meat_gloss.tga
77         textures/meat_norm.tga
78         textures/meat_robot_gloss.tga
79         textures/meat_robot_glow.tga
80         textures/meat_robot_norm.tga
81         textures/meat_robot.tga
82         textures/meat.tga
83         textures/bloodyskull_alien_glow.tga
84         textures/bloodyskull_alien.tga
85         textures/bloodyskull.jpg
86         textures/bloodyskull_robot_gloss.tga
87         textures/bloodyskull_robot_glow.tga
88         textures/bloodyskull_robot.tga
89 "
90
91 rm -rf pack
92 mkdir pack
93 for F in $COMPAT_FILES; do
94         case "$F" in
95                 */*)
96                         mkdir -p pack/${F%/*}
97                         ;;
98         esac
99         cp "$F" pack/"$F"
100 done
101
102 cd pack
103
104 find textures/ -type f -print0 | qual=85 scaledown=256x256 xargs -0 ../../misc/tools/jpeg-if-not-alpha.sh
105
106 if false; then
107         find . -name \*.ogg | while IFS= read -r NAME; do
108                 c=`vorbiscomment -l "$NAME"`
109                 oggdec -o "$NAME.wav" "$NAME"
110                 oggenc -q 0 -o "$NAME" "$NAME.wav"
111                 echo "$c" | vorbiscomment -w "$NAME"
112                 rm -f "$NAME.wav"
113                 touch "${NAME%.ogg}.wav" # to disable this file, should the client have it
114         done
115 fi
116
117 rev=`svnversion .. | sed 's/M$//g; s/.*://g;'`
118 pack="zzz_svn-compat-$rev"
119 echo "Support files to play on svn servers of revision $rev" > "$pack.txt"
120 7za a -tzip -mx=9 "../$pack.pk3" .
121 rm -f "$pack.txt"
122
123 cd ..
124 rm -rf pack