Remove support for the glx binary.
[xonotic/xonotic.git] / misc / tools / all / release.subr
1 release_common()
2 {
3         export LC_ALL=C
4
5         release_args="$cmd $*"
6         msg "*** $release_args: start"
7         release_starttime=`date +%s`
8         release_end()
9         {
10                 release_endtime=`date +%s`
11                 release_deltatime=$(($release_endtime - $release_starttime))
12                 msg "*** $release_args: $release_deltatime seconds"
13         }
14         trap release_end EXIT
15         release_tempstarttime=$release_starttime
16         release_timereport()
17         {
18                 release_endtime=`date +%s` # RELEASE NOW!!!
19                 if [ -n "$*" ]; then
20                         release_deltatime=$(($release_endtime - $release_tempstarttime))
21                         msg "**** $release_args: $*: $release_deltatime seconds"
22                 fi
23                 release_tempstarttime=$release_endtime
24         }
25         release_git_extract_dir()
26         {
27                 release_src=$1; shift
28                 release_dst=$1; shift
29                 # try to create a hardlink
30                 if ln -f "$release_src/.git/HEAD" "$release_dst/.hardlink-test"; then
31                         rm -f "$release_dst/.hardlink-test"
32                         {
33                                 verbose cd "$release_src"
34                                 git ls-files HEAD -- "$@"
35                         } | {
36                                 while IFS= read -r F; do
37                                         case "$F" in */*) mkdir -p "$release_dst/${F%/*}" ;; esac
38                                         verbose ln -f "$release_src/$F" "$release_dst/$F"
39                                 done
40                         }
41                 else
42                         {
43                                 verbose cd "$release_src"
44                                 verbose git archive --format=tar HEAD -- "$@"
45                         } | {
46                                 verbose cd "$release_dst"
47                                 verbose tar xvf -
48                         }
49                 fi
50         }
51
52         mkzipr()
53         {
54                 archive=$1; shift
55
56                 # get rid of this hack once we have done large enough changes
57                 # to be no longer rsync compatible (and then enable the below
58                 # code)
59                 sevenzipflags=-mx=9
60                 zipflags=-9
61                 find "$@" -exec touch -d "2001-01-01 01:01:01 +0000" {} \+ # ugly hack to make the pk3 files rsync-friendly
62                 ziplist=`mktemp`
63                 find "$@" -xtype f \( -executable -or -type l \) -print | sed 's,\([./][^./]*$\),\1 \1,' | sort -k2 | cut -d\  -f1 > "$ziplist"
64                 7za a -tzip $sevenzipflags -x@"$ziplist" "$archive" "$@" || true
65                 zip         $zipflags -y   -@<"$ziplist" "$archive"      || true
66                 rm -f "$ziplist"
67
68                 #zipflags=-1r
69                 #find "$@" -exec touch -d "2001-01-01 01:01:01 +0000" {} \+ # ugly hack to make the pk3 files rsync-friendly
70                 #zip $zipflags -y "$archive" "$@" || true
71                 #advzip -4 "$archive"
72         }
73
74         mkzip()
75         {
76                 archive=$1; shift
77                 zipflags=-1ry
78                 zip $zipflags "$archive" "$@" || true
79                 advzip -z -4 "$archive"
80         }
81
82         mkzip0()
83         {
84                 archive=$1; shift
85                 zipflags=-0ry
86                 zip $zipflags "$archive" "$@" || true
87         }
88
89         getversion()
90         {
91                 gv=`grep "^gameversion " "$1/xonotic-common.cfg" | awk '{ print $2 }'`
92                 major=$(($gv / 10000))
93                 minor=$((($gv / 100) - ($major * 100)))
94                 patch=$(($gv - ($major * 10000) - ($minor * 100)))
95                 versionstr="$major.$minor.$patch"
96         }
97 }
98
99 handled=true
100 case "$cmd" in
101         # release building goes here
102         release-prepare)
103                 release_common
104                 #"$SELF" each git clean -fxd
105                 case "$RELEASETYPE" in
106                         '')
107                                 $ECHO >&2 -n "$ESC[2J$ESC[H"
108                                 msg ""
109                                 msg ""
110                                 msg ""
111                                 msg ""
112                                 msg ""
113                                 msg ""
114                                 msg "        +---------------------------------------------------------.---+"
115                                 msg "        | NOTE                                                    | X |"
116                                 msg "        +---------------------------------------------------------^---+"
117                                 msg "        |   ____                                                      |"
118                                 msg "        |  /    \  This is the official release build system.         |"
119                                 msg "        | |      | If you are not a member of the Xonotic Core Team,  |"
120                                 msg "        | | STOP | you are not supposed to use this script and should |"
121                                 msg "        | |      | instead use ./all compile to compile the engine    |"
122                                 msg "        |  \____/  and game code.                                     |"
123                                 msg "        |                                                             |"
124                                 msg "        |                      [ I understand ]                       |"
125                                 msg "        +-------------------------------------------------------------+"
126                                 sleep 10
127                                 # A LOT of build infrastructure is required:
128                                 # - vorbis-tools
129                                 # - ImageMagick
130                                 # - .ssh/config must be configured so the following
131                                 #   host names are reachable and have a compile
132                                 #   infrastructure set up:
133                                 #   - xonotic-build-linux64 (with gcc on x86_64)
134                                 #   - xonotic-build-win32 (with i586-mingw32msvc-g++)
135                                 #   - xonotic-build-win64 (with amd64-mingw32msvc-g++
136                                 #     and amd64-mingw32msvc-g++)
137                                 #   - xonotic-build-osx (with Xcode and SDL.framework)
138                                 # - AMD Compressonator installed in WINE
139                                 # - ResEdit installed in WINE
140                                 # - a lot of other requirements you will figure out
141                                 #   while reading the error messages
142                                 # - environment variable RELEASETYPE set
143                                 # - optionally, environment variable RELEASEDATE set
144                                 #   (YYYYMMDD)
145                                 exit 1
146                                 ;;
147                         release)
148                                 msg "Building a FINISHED RELEASE"
149                                 getversion data/xonotic-data.pk3dir
150                                 verbose "$SELF" each -k git tag -m "TEMP TAG" -f "xonotic-v$versionstr"
151                                 ;;
152                         *)
153                                 msg "Building a $RELEASETYPE"
154                                 ;;
155                 esac
156                 verbose rm -rf Xonotic Xonotic*.zip
157                 verbose mkdir -p Xonotic
158                 if [ -n "$RELEASEDATE" ]; then
159                         verbose $ECHO "$RELEASEDATE" > Xonotic/stamp.txt
160                         case "$RELEASETYPE" in
161                                 release)
162                                         verbose $ECHO "${RELEASEDATE%_*}" > Xonotic/pk3stamp.txt
163                                         ;;
164                                 *)
165                                         verbose $ECHO "$RELEASEDATE" > Xonotic/pk3stamp.txt
166                                         ;;
167                         esac
168                 else
169                         verbose date +%Y%m%d > Xonotic/stamp.txt
170                         verbose date +%Y%m%d > Xonotic/pk3stamp.txt
171                 fi
172                 release_git_extract_dir "." "Xonotic" Docs misc server xonotic-linux-sdl.sh xonotic-linux-dedicated.sh Makefile misc/buildfiles key_0.d0pk COPYING GPL-2 GPL-3
173                 (
174                         verbose cd Xonotic
175                         verbose mkdir data gmqcc source source/darkplaces source/gmqcc source/d0_blind_id mapping
176                         verbose rm -rf misc/builddeps
177                         verbose mv misc/buildfiles/win32 bin32 || true
178                         verbose mv bin32/SDL.dll . || true
179                         verbose mv misc/buildfiles/win64 bin64 || true
180                         verbose mv misc/buildfiles/osx/* . || true
181                         verbose rm -rf misc/buildfiles
182                         verbose rm -rf misc/pki
183                 )
184                 release_git_extract_dir "darkplaces" "Xonotic/source/darkplaces" .
185                 release_git_extract_dir "gmqcc" "Xonotic/source/gmqcc" .
186                 release_git_extract_dir "data/xonotic-data.pk3dir" "Xonotic/source" qcsrc Makefile
187                 release_git_extract_dir "d0_blind_id" "Xonotic/source/d0_blind_id" .
188                 (
189                         verbose cd Xonotic/source/d0_blind_id
190                         verbose sh autogen.sh
191                 )
192                 rm -f Xonotic/key_15.d0pk
193                 (
194                         verbose cd Xonotic/mapping
195                         verbose wget http://www.icculus.org/netradiant/files/netradiant-1.5.0-20120301.tar.bz2
196                         verbose wget http://www.icculus.org/netradiant/files/netradiant-1.5.0-20120301-win32-7z.exe
197                         for X in *-7z.exe; do
198                                 7za x "$X"
199                                 rm -f "$X"
200                         done
201                         # TODO possibly include other tools?
202                 )
203                 ./all each git rev-parse HEAD > Xonotic/misc/git-revisions.txt
204                 ;;
205         release-getbinary)
206                 release_common
207                 binary=$1
208                 basename=${binary##*/}
209                 dpname=darkplaces${basename#xonotic}
210                 rev=`( cd "$d0/darkplaces" && git rev-parse HEAD )`
211                 verbose wget -O "$binary" "http://beta.xonotic.org/autobuild-bin/$rev/$dpname"
212                 [ -s "$binary" ] || rm -f "$binary"
213                 [ -f "$binary" ]
214                 case "$binary" in
215                         Xonotic/*osx*|Xonotic/*linux*)
216                                 chmod +x "$binary"
217                                 ;;
218                 esac
219                 ;;
220         release-engine-win32)
221                 release_common
222                 good=true
223                 verbose "$SELF" release-getbinary Xonotic/xonotic-x86.exe || good=false
224                 verbose "$SELF" release-getbinary Xonotic/xonotic-x86-dedicated.exe || good=false
225                 $good
226                 ;;
227         release-engine-win64)
228                 release_common
229                 good=true
230                 verbose "$SELF" release-getbinary Xonotic/xonotic.exe || good=false
231                 verbose "$SELF" release-getbinary Xonotic/xonotic-dedicated.exe || good=false
232                 $good
233                 ;;
234         release-engine-osx)
235                 release_common
236                 good=true
237                 verbose "$SELF" release-getbinary Xonotic/Xonotic.app/Contents/MacOS/xonotic-osx-sdl-bin || good=false
238                 verbose "$SELF" release-getbinary Xonotic/xonotic-osx-dedicated || good=false
239                 $good
240                 ;;
241         release-engine-linux64)
242                 release_common
243                 good=true
244                 verbose "$SELF" release-getbinary Xonotic/xonotic-linux64-sdl || good=false
245                 verbose "$SELF" release-getbinary Xonotic/xonotic-linux64-dedicated || good=false
246                 $good
247                 ;;
248         release-engine)
249                 release_common
250                 # TODO report failures here.
251                 good=false
252                 verbose "$SELF" release-engine-linux64 && good=true
253                 verbose "$SELF" release-engine-win32 && good=true
254                 verbose "$SELF" release-engine-win64 && good=true
255                 verbose "$SELF" release-engine-osx && good=true
256                 $good
257                 ;;
258         release-maps)
259                 release_common
260                 verbose "$SELF" update-maps
261                 ;;
262         release-qc)
263                 release_common
264                 verbose make -C "$d0/gmqcc" all
265                 verbose env GIT_DIR="$d0/data/xonotic-data.pk3dir/.git" make -C Xonotic/source QCC="$d0/gmqcc/gmqcc" XON_BUILDSYSTEM=1 clean all
266                 ;;
267         release-buildpk3-transform-raw)
268                 release_common
269                 dir=$1
270                 ;;
271         release-buildpk3-transform-normal)
272                 release_common
273                 dir=$1
274                 verbose cd "$dir"
275                 # texture: convert to jpeg and dds
276                 verbose export do_jpeg=true
277                 verbose export jpeg_qual_rgb=97
278                 verbose export jpeg_qual_a=99
279                 verbose export do_dds=false
280                 verbose export do_ogg=true
281                 verbose export ogg_ogg=false
282                 verbose export del_src=true
283                 find . -type f -print0 | verbose xargs -0 "$d0"/misc/tools/cached-converter.sh
284                 ;;
285         release-buildpk3-transform-normaldds)
286                 release_common
287                 dir=$1
288                 verbose cd "$dir"
289                 # texture: convert to jpeg and dds
290                 # music: reduce bitrate
291                 verbose export do_jpeg=false
292                 verbose export do_jpeg_if_not_dds=true
293                 verbose export jpeg_qual_rgb=95
294                 verbose export jpeg_qual_a=99
295                 verbose export do_dds=true
296                 verbose export dds_flags=
297                 verbose export do_ogg=true
298                 verbose export ogg_ogg=false
299                 verbose export del_src=true
300                 find . -type f -print0 | verbose xargs -0 "$d0"/misc/tools/cached-converter.sh
301                 ;;
302         release-buildpk3-transform-low)
303                 release_common
304                 dir=$1
305                 verbose cd "$dir"
306                 # texture: convert to jpeg and dds
307                 # music: reduce bitrate
308                 verbose export do_jpeg=true
309                 verbose export jpeg_qual_rgb=80
310                 verbose export jpeg_qual_a=97
311                 verbose export do_dds=false
312                 verbose export do_ogg=true
313                 verbose export ogg_qual=1
314                 verbose export del_src=true
315                 find . -type f -print0 | verbose xargs -0 "$d0"/misc/tools/cached-converter.sh
316                 ;;
317         release-buildpk3-transform-webp)
318                 release_common
319                 dir=$1
320                 verbose cd "$dir"
321                 # texture: convert to jpeg and dds
322                 verbose export do_jpeg=false
323                 verbose export do_webp=true
324                 verbose export do_dds=false
325                 verbose export do_ogg=false
326                 verbose export ogg_ogg=false
327                 verbose export del_src=true
328                 find . -type f -print0 | verbose xargs -0 "$d0"/misc/tools/cached-converter.sh
329                 ;;
330         release-buildpk3-transform-lowdds)
331                 release_common
332                 dir=$1
333                 verbose cd "$dir"
334                 # texture: convert to jpeg and dds
335                 # music: reduce bitrate
336                 verbose export do_jpeg=false
337                 verbose export do_jpeg_if_not_dds=true
338                 verbose export jpeg_qual_rgb=80
339                 verbose export jpeg_qual_a=99
340                 verbose export do_dds=true
341                 verbose export dds_flags=
342                 verbose export do_ogg=true
343                 verbose export ogg_qual=1
344                 verbose export del_src=true
345                 find . -type f -print0 | verbose xargs -0 "$d0"/misc/tools/cached-converter.sh
346                 ;;
347         release-buildpk3-transform-mapping)
348                 release_common
349                 dir=$1
350                 verbose cd "$dir"
351                 # remove stuff radiant has no use for
352                 verbose find . -name \*_norm.\* -exec rm -f {} \;
353                 verbose find . -name \*_bump.\* -exec rm -f {} \;
354                 verbose find . -name \*_glow.\* -exec rm -f {} \;
355                 verbose find . -name \*_gloss.\* -exec rm -f {} \;
356                 verbose find . -name \*_pants.\* -exec rm -f {} \;
357                 verbose find . -name \*_shirt.\* -exec rm -f {} \;
358                 verbose find . -name \*_reflect.\* -exec rm -f {} \;
359                 verbose find . -not \( -name \*.tga -o -name \*.png -o -name \*.jpg \) -exec rm -f {} \;
360                 # texture: convert to jpeg and dds
361                 # music: reduce bitrate
362                 verbose export do_jpeg=true
363                 verbose export jpeg_qual_rgb=80
364                 verbose export jpeg_qual_a=97
365                 verbose export do_dds=false
366                 verbose export do_ogg=true
367                 verbose export ogg_qual=1
368                 verbose export del_src=true
369                 find . -type f -print0 | verbose xargs -0 "$d0"/misc/tools/cached-converter.sh
370                 ;;
371         release-buildpk3)
372                 release_common
373                 src=$1
374                 dst=$2
375                 transform=$3
376                 case "$dst" in
377                         /*)
378                                 ;;
379                         */)
380                                 dst="$PWD/$dst"
381                                 ;;
382                 esac
383                 release_timereport
384                 verbose rm -rf Xonotic/temp
385                 release_timereport "deleted temp directory"
386                 verbose mkdir -p Xonotic/temp
387                 release_git_extract_dir "$src" "Xonotic/temp" .
388                 release_timereport "extracted data"
389                 verbose cd Xonotic/temp
390                 if [ x"$src" = x"data/xonotic-data.pk3dir" ]; then
391                         verbose cp ../source/progs.dat .
392                         verbose cp ../source/csprogs.dat .
393                         verbose cp ../source/menu.dat .
394                         verbose rm -rf qcsrc
395                         getversion .
396                         case "$RELEASETYPE" in
397                                 release)
398                                         ;;
399                                 *)
400                                         versionstr="$versionstr$RELEASETYPE"
401                                         ;;
402                         esac
403                         if [ $gv -lt 9900 ]; then
404                                 # pre-1.0: compatible with any other pre-1.0
405                                 verbose sed "
406                                         s/^set g_xonoticversion [^ ]* /set g_xonoticversion $versionstr /;
407                                         s/^gameversion_min [0-9]*/gameversion_min     0/;
408                                         s/^gameversion_max [0-9]*/gameversion_max  9999/;
409                                 " < xonotic-common.cfg > xonotic-common.cfg.new
410                         else
411                                 # >= 1.0
412                                 verbose sed "
413                                         s/^set g_xonoticversion [^ ]* /set g_xonoticversion $versionstr /;
414                                         s/^gameversion_min [0-9]*/gameversion_min $(( ($gv / 100) * 100 - 100 ))/;
415                                         s/^gameversion_max [0-9]*/gameversion_max $(( ($gv / 100) * 100 + 199 ))/;
416                                 " < xonotic-common.cfg > xonotic-common.cfg.new
417                         fi
418                         mv xonotic-common.cfg.new xonotic-common.cfg
419                         case "$RELEASETYPE" in
420                                 release)
421                                         echo "" >> xonotic-common.cfg
422                                         echo "// nicer menu" >> xonotic-common.cfg
423                                         echo "set menu_watermark \"\"" >> xonotic-common.cfg
424                                         ;;
425                         esac
426                         (
427                                 verbose cd gfx/menu/luminos
428                                 verbose rm -f background_l2.tga background_ingame_l2.tga
429                                 verbose cp "$d0"/mediasource/gfx/menu/luminos_versionbuilder/background_l2.svg .
430                                 verbose "$d0"/mediasource/gfx/menu/luminos_versionbuilder/versionbuilder "$versionstr"
431                                 verbose rm background_l2.svg
432                         )
433                         verbose "$d0"/mediasource/gfx/luma/render-version.sh "$d0/mediasource/gfx/luma" "$PWD" "$versionstr"
434                 fi
435                 if [ x"$src" = x"data/xonotic-maps.pk3dir" ]; then
436                         for X in ../../data/*-????????????????????????????????????????-????????????????????????????????????????.pk3; do
437                                 if [ -f "$X" ]; then
438                                         verbose unzip "$X"
439                                         verbose rm -f maps/*.log maps/*.irc maps/*.lin
440                                 fi
441                         done
442                 fi
443                 verbose export git_src_repo="$d0/$src" # skip hash-object
444                 release_timereport "processed data"
445                 verbose "$SELF" release-buildpk3-transform-$transform "Xonotic/temp"
446                 release_timereport "transformed data"
447                 find . -type f -size +4k | verbose "$d0"/misc/tools/symlink-deduplicate.sh
448                 release_timereport "deduplicated data"
449                 verbose mkzipr "../../$dst" *
450                 release_timereport "zipped data"
451                 verbose cd ../..
452                 verbose rm -rf Xonotic/temp
453                 release_timereport "deleted temp directory again"
454                 ;;
455         release-buildpk3s)
456                 release_common
457                 pk3stamp=`cat Xonotic/pk3stamp.txt`
458                 src=$1
459                 shift
460                 dst=${src%.pk3dir}
461                 case "$dst" in
462                         data/xonotic-*)
463                                 dst="data/xonotic-$pk3stamp-${dst#data/xonotic-}"
464                                 ;;
465                         *)
466                                 dst="$dst-$pk3stamp"
467                                 ;;
468                 esac
469                 while [ "$#" -gt 1 ]; do
470                         verbose "$SELF" release-buildpk3 "$src" "Xonotic/$dst$2.pk3" "$1"
471                         shift
472                         shift
473                 done
474                 ;;
475         release-pack)
476                 release_common
477                 verbose "$SELF" release-buildpk3s data/font-unifont.pk3dir      raw ''
478                 verbose "$SELF" release-buildpk3s data/font-xolonium.pk3dir     raw ''
479                 verbose "$SELF" release-buildpk3s data/xonotic-data.pk3dir             low '-low' normaldds ''                    normal '-high'
480                 verbose "$SELF" release-buildpk3s data/xonotic-maps.pk3dir             low '-low' normaldds '' mapping '-mapping' normal '-high'
481                 verbose "$SELF" release-buildpk3s data/xonotic-music.pk3dir     raw '' low '-low'
482                 verbose "$SELF" release-buildpk3s data/xonotic-nexcompat.pk3dir                   normaldds ''
483                 ;;
484         release-pack-needsx11)
485                 release_common
486                 case "$DISPLAY" in
487                         '')
488                                 verbose startx "$SELF" release-pack -- /usr/bin/Xvfb :7
489                                 ;;
490                         *)
491                                 verbose "$SELF" release-pack
492                                 ;;
493                 esac
494                 ;;
495         release-zip)
496                 release_common
497                 stamp=`cat Xonotic/stamp.txt`
498                 pk3stamp=`cat Xonotic/pk3stamp.txt`
499                 # exe and dll files do not need +x, so this makes them eligible for 7zip compression too
500                 chmod a-x Xonotic/*.exe Xonotic/*.dll || true
501                 for suffix in '' '-noaes'; do
502                         # build the archives
503                         verbose mkzip Xonotic-$stamp-enginesource$suffix.zip \
504                                 Xonotic/Makefile \
505                                 Xonotic/source/darkplaces/ \
506                                 Xonotic/COPYING Xonotic/GPL-2 Xonotic/GPL-3
507                         verbose cp Xonotic-$stamp-enginesource$suffix.zip Xonotic-$stamp-engine$suffix.zip
508                         verbose mkzip Xonotic-$stamp-engine$suffix.zip \
509                                 Xonotic/*.dll \
510                                 Xonotic/bin32/*.dll \
511                                 Xonotic/bin64/*.dll \
512                                 Xonotic/*.app \
513                                 Xonotic/xonotic-* \
514                                 Xonotic/xonotic.exe
515                         verbose cp Xonotic-$stamp-engine$suffix.zip Xonotic-$stamp-common$suffix.zip
516                         verbose mkzip Xonotic-$stamp-common$suffix.zip \
517                                 Xonotic/source/d0_blind_id/ \
518                                 Xonotic/source/gmqcc/ \
519                                 Xonotic/source/qcsrc/ \
520                                 Xonotic/Docs \
521                                 Xonotic/misc \
522                                 Xonotic/gmqcc \
523                                 Xonotic/server \
524                                 Xonotic/key_0.d0pk \
525                                 Xonotic/data/font-unifont-$pk3stamp.pk3 \
526                                 Xonotic/data/font-xolonium-$pk3stamp.pk3
527                         verbose cp Xonotic-$stamp-enginesource$suffix.zip Xonotic-$stamp-source$suffix.zip
528                         verbose mkzip Xonotic-$stamp-source$suffix.zip \
529                                 Xonotic/source/d0_blind_id/ \
530                                 Xonotic/source/gmqcc/ \
531                                 Xonotic/source/qcsrc/ \
532                                 Xonotic/misc/logos
533                         verbose cp Xonotic-$stamp-common$suffix.zip Xonotic-$stamp$suffix.zip
534                         verbose mkzip0 Xonotic-$stamp$suffix.zip \
535                                 Xonotic/data/xonotic-$pk3stamp-data.pk3 \
536                                 Xonotic/data/xonotic-$pk3stamp-maps.pk3 \
537                                 Xonotic/data/xonotic-$pk3stamp-music.pk3 \
538                                 Xonotic/data/xonotic-$pk3stamp-nexcompat.pk3
539                         verbose cp Xonotic-$stamp-common$suffix.zip Xonotic-$stamp-low$suffix.zip
540                         verbose mkzip0 Xonotic-$stamp-low$suffix.zip \
541                                 Xonotic/data/xonotic-$pk3stamp-data-low.pk3 \
542                                 Xonotic/data/xonotic-$pk3stamp-maps-low.pk3 \
543                                 Xonotic/data/xonotic-$pk3stamp-music-low.pk3
544                         verbose mv Xonotic-$stamp-common$suffix.zip Xonotic-$stamp-high$suffix.zip
545                         verbose mkzip0 Xonotic-$stamp-high$suffix.zip \
546                                 Xonotic/data/xonotic-$pk3stamp-data-high.pk3 \
547                                 Xonotic/data/xonotic-$pk3stamp-maps-high.pk3 \
548                                 Xonotic/data/xonotic-$pk3stamp-music.pk3
549                         # let's pass crypto import laws of some nasty countries
550                         find Xonotic -name \*d0_rijndael\*.so -o -name \*d0_rijndael\*.dylib -o -name \*d0_rijndael\*.dll -o -name \*d0_rijndael\*.c -delete
551                 done
552                 verbose mkzip Xonotic-$stamp-mappingsupport.zip \
553                         Xonotic/mapping
554                 verbose mkzip0 Xonotic-$stamp-mappingsupport.zip \
555                         Xonotic/data/xonotic-$pk3stamp-maps-mapping.pk3
556                 verbose mkzip gmqcc-$stamp.zip \
557                         Xonotic/gmqcc \
558                         Xonotic/source/gmqcc
559                 ;;
560         release)
561                 release_common
562                 verbose "$SELF" release-prepare
563                 verbose "$SELF" release-maps
564                 verbose "$SELF" release-engine
565                 verbose "$SELF" release-qc
566                 verbose "$SELF" release-pack-needsx11
567                 verbose "$SELF" release-zip
568                 ;;
569         *)
570                 handled=false
571                 ;;
572 esac