Remove linux 32bit binary support.
[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/defaultXonotic.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-glx.sh 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-wgl.exe || good=false
225                 verbose "$SELF" release-getbinary Xonotic/xonotic-x86-dedicated.exe || good=false
226                 $good
227                 ;;
228         release-engine-win64)
229                 release_common
230                 good=true
231                 verbose "$SELF" release-getbinary Xonotic/xonotic.exe || good=false
232                 verbose "$SELF" release-getbinary Xonotic/xonotic-wgl.exe || good=false
233                 verbose "$SELF" release-getbinary Xonotic/xonotic-dedicated.exe || good=false
234                 $good
235                 ;;
236         release-engine-osx)
237                 release_common
238                 good=true
239                 verbose "$SELF" release-getbinary Xonotic/Xonotic.app/Contents/MacOS/xonotic-osx-sdl-bin || good=false
240                 verbose "$SELF" release-getbinary Xonotic/xonotic-osx-dedicated || good=false
241                 $good
242                 ;;
243         release-engine-linux64)
244                 release_common
245                 good=true
246                 verbose "$SELF" release-getbinary Xonotic/xonotic-linux64-sdl || good=false
247                 verbose "$SELF" release-getbinary Xonotic/xonotic-linux64-glx || good=false
248                 verbose "$SELF" release-getbinary Xonotic/xonotic-linux64-dedicated || good=false
249                 $good
250                 ;;
251         release-engine)
252                 release_common
253                 # TODO report failures here.
254                 good=false
255                 verbose "$SELF" release-engine-linux64 && good=true
256                 verbose "$SELF" release-engine-win32 && good=true
257                 verbose "$SELF" release-engine-win64 && good=true
258                 verbose "$SELF" release-engine-osx && good=true
259                 $good
260                 ;;
261         release-maps)
262                 release_common
263                 verbose "$SELF" update-maps
264                 ;;
265         release-qc)
266                 release_common
267                 verbose make -C "$d0/gmqcc" all
268                 verbose env GIT_DIR="$d0/data/xonotic-data.pk3dir/.git" make -C Xonotic/source QCC="$d0/gmqcc/gmqcc" XON_BUILDSYSTEM=1 clean all
269                 ;;
270         release-buildpk3-transform-raw)
271                 release_common
272                 dir=$1
273                 ;;
274         release-buildpk3-transform-normal)
275                 release_common
276                 dir=$1
277                 verbose cd "$dir"
278                 # texture: convert to jpeg and dds
279                 verbose export do_jpeg=true
280                 verbose export jpeg_qual_rgb=97
281                 verbose export jpeg_qual_a=99
282                 verbose export do_dds=false
283                 verbose export do_ogg=true
284                 verbose export ogg_ogg=false
285                 verbose export del_src=true
286                 find . -type f -print0 | verbose xargs -0 "$d0"/misc/tools/cached-converter.sh
287                 ;;
288         release-buildpk3-transform-normaldds)
289                 release_common
290                 dir=$1
291                 verbose cd "$dir"
292                 # texture: convert to jpeg and dds
293                 # music: reduce bitrate
294                 verbose export do_jpeg=false
295                 verbose export do_jpeg_if_not_dds=true
296                 verbose export jpeg_qual_rgb=95
297                 verbose export jpeg_qual_a=99
298                 verbose export do_dds=true
299                 verbose export dds_flags=
300                 verbose export do_ogg=true
301                 verbose export ogg_ogg=false
302                 verbose export del_src=true
303                 find . -type f -print0 | verbose xargs -0 "$d0"/misc/tools/cached-converter.sh
304                 ;;
305         release-buildpk3-transform-low)
306                 release_common
307                 dir=$1
308                 verbose cd "$dir"
309                 # texture: convert to jpeg and dds
310                 # music: reduce bitrate
311                 verbose export do_jpeg=true
312                 verbose export jpeg_qual_rgb=80
313                 verbose export jpeg_qual_a=97
314                 verbose export do_dds=false
315                 verbose export do_ogg=true
316                 verbose export ogg_qual=1
317                 verbose export del_src=true
318                 find . -type f -print0 | verbose xargs -0 "$d0"/misc/tools/cached-converter.sh
319                 ;;
320         release-buildpk3-transform-webp)
321                 release_common
322                 dir=$1
323                 verbose cd "$dir"
324                 # texture: convert to jpeg and dds
325                 verbose export do_jpeg=false
326                 verbose export do_webp=true
327                 verbose export do_dds=false
328                 verbose export do_ogg=false
329                 verbose export ogg_ogg=false
330                 verbose export del_src=true
331                 find . -type f -print0 | verbose xargs -0 "$d0"/misc/tools/cached-converter.sh
332                 ;;
333         release-buildpk3-transform-lowdds)
334                 release_common
335                 dir=$1
336                 verbose cd "$dir"
337                 # texture: convert to jpeg and dds
338                 # music: reduce bitrate
339                 verbose export do_jpeg=false
340                 verbose export do_jpeg_if_not_dds=true
341                 verbose export jpeg_qual_rgb=80
342                 verbose export jpeg_qual_a=99
343                 verbose export do_dds=true
344                 verbose export dds_flags=
345                 verbose export do_ogg=true
346                 verbose export ogg_qual=1
347                 verbose export del_src=true
348                 find . -type f -print0 | verbose xargs -0 "$d0"/misc/tools/cached-converter.sh
349                 ;;
350         release-buildpk3-transform-mapping)
351                 release_common
352                 dir=$1
353                 verbose cd "$dir"
354                 # remove stuff radiant has no use for
355                 verbose find . -name \*_norm.\* -exec rm -f {} \;
356                 verbose find . -name \*_bump.\* -exec rm -f {} \;
357                 verbose find . -name \*_glow.\* -exec rm -f {} \;
358                 verbose find . -name \*_gloss.\* -exec rm -f {} \;
359                 verbose find . -name \*_pants.\* -exec rm -f {} \;
360                 verbose find . -name \*_shirt.\* -exec rm -f {} \;
361                 verbose find . -name \*_reflect.\* -exec rm -f {} \;
362                 verbose find . -not \( -name \*.tga -o -name \*.png -o -name \*.jpg \) -exec rm -f {} \;
363                 # texture: convert to jpeg and dds
364                 # music: reduce bitrate
365                 verbose export do_jpeg=true
366                 verbose export jpeg_qual_rgb=80
367                 verbose export jpeg_qual_a=97
368                 verbose export do_dds=false
369                 verbose export do_ogg=true
370                 verbose export ogg_qual=1
371                 verbose export del_src=true
372                 find . -type f -print0 | verbose xargs -0 "$d0"/misc/tools/cached-converter.sh
373                 ;;
374         release-buildpk3)
375                 release_common
376                 src=$1
377                 dst=$2
378                 transform=$3
379                 case "$dst" in
380                         /*)
381                                 ;;
382                         */)
383                                 dst="$PWD/$dst"
384                                 ;;
385                 esac
386                 release_timereport
387                 verbose rm -rf Xonotic/temp
388                 release_timereport "deleted temp directory"
389                 verbose mkdir -p Xonotic/temp
390                 release_git_extract_dir "$src" "Xonotic/temp" .
391                 release_timereport "extracted data"
392                 verbose cd Xonotic/temp
393                 if [ x"$src" = x"data/xonotic-data.pk3dir" ]; then
394                         verbose cp ../source/progs.dat .
395                         verbose cp ../source/csprogs.dat .
396                         verbose cp ../source/menu.dat .
397                         verbose rm -rf qcsrc
398                         getversion .
399                         case "$RELEASETYPE" in
400                                 release)
401                                         ;;
402                                 *)
403                                         versionstr="$versionstr$RELEASETYPE"
404                                         ;;
405                         esac
406                         if [ $gv -lt 9900 ]; then
407                                 # pre-1.0: compatible with any other pre-1.0
408                                 verbose sed "
409                                         s/^set g_xonoticversion [^ ]* /set g_xonoticversion $versionstr /;
410                                         s/^gameversion_min [0-9]*/gameversion_min     0/;
411                                         s/^gameversion_max [0-9]*/gameversion_max  9999/;
412                                 " < defaultXonotic.cfg > defaultXonotic.cfg.new
413                         else
414                                 # >= 1.0
415                                 verbose sed "
416                                         s/^set g_xonoticversion [^ ]* /set g_xonoticversion $versionstr /;
417                                         s/^gameversion_min [0-9]*/gameversion_min $(( ($gv / 100) * 100 - 100 ))/;
418                                         s/^gameversion_max [0-9]*/gameversion_max $(( ($gv / 100) * 100 + 199 ))/;
419                                 " < defaultXonotic.cfg > defaultXonotic.cfg.new
420                         fi
421                         mv defaultXonotic.cfg.new defaultXonotic.cfg
422                         case "$RELEASETYPE" in
423                                 release)
424                                         echo "" >> defaultXonotic.cfg
425                                         echo "// nicer menu" >> defaultXonotic.cfg
426                                         echo "set menu_watermark \"\"" >> defaultXonotic.cfg
427                                         ;;
428                         esac
429                         (
430                                 verbose cd gfx/menu/luminos
431                                 verbose rm -f background_l2.tga background_ingame_l2.tga
432                                 verbose cp "$d0"/mediasource/gfx/menu/luminos_versionbuilder/background_l2.svg .
433                                 verbose "$d0"/mediasource/gfx/menu/luminos_versionbuilder/versionbuilder "$versionstr"
434                                 verbose rm background_l2.svg
435                         )
436                         verbose "$d0"/mediasource/gfx/luma/render-version.sh "$d0/mediasource/gfx/luma" "$PWD" "$versionstr"
437                 fi
438                 if [ x"$src" = x"data/xonotic-maps.pk3dir" ]; then
439                         for X in ../../data/*-????????????????????????????????????????-????????????????????????????????????????.pk3; do
440                                 if [ -f "$X" ]; then
441                                         verbose unzip "$X"
442                                         verbose rm -f maps/*.log maps/*.irc maps/*.lin
443                                 fi
444                         done
445                 fi
446                 verbose export git_src_repo="$d0/$src" # skip hash-object
447                 release_timereport "processed data"
448                 verbose "$SELF" release-buildpk3-transform-$transform "Xonotic/temp"
449                 release_timereport "transformed data"
450                 find . -type f -size +4k | verbose "$d0"/misc/tools/symlink-deduplicate.sh
451                 release_timereport "deduplicated data"
452                 verbose mkzipr "../../$dst" *
453                 release_timereport "zipped data"
454                 verbose cd ../..
455                 verbose rm -rf Xonotic/temp
456                 release_timereport "deleted temp directory again"
457                 ;;
458         release-buildpk3s)
459                 release_common
460                 pk3stamp=`cat Xonotic/pk3stamp.txt`
461                 src=$1
462                 shift
463                 dst=${src%.pk3dir}
464                 case "$dst" in
465                         data/xonotic-*)
466                                 dst="data/xonotic-$pk3stamp-${dst#data/xonotic-}"
467                                 ;;
468                         *)
469                                 dst="$dst-$pk3stamp"
470                                 ;;
471                 esac
472                 while [ "$#" -gt 1 ]; do
473                         verbose "$SELF" release-buildpk3 "$src" "Xonotic/$dst$2.pk3" "$1"
474                         shift
475                         shift
476                 done
477                 ;;
478         release-pack)
479                 release_common
480                 verbose "$SELF" release-buildpk3s data/font-unifont.pk3dir      raw ''
481                 verbose "$SELF" release-buildpk3s data/font-xolonium.pk3dir     raw ''
482                 verbose "$SELF" release-buildpk3s data/xonotic-data.pk3dir             low '-low' normaldds ''                    normal '-high'
483                 verbose "$SELF" release-buildpk3s data/xonotic-maps.pk3dir             low '-low' normaldds '' mapping '-mapping' normal '-high'
484                 verbose "$SELF" release-buildpk3s data/xonotic-music.pk3dir     raw '' low '-low'
485                 verbose "$SELF" release-buildpk3s data/xonotic-nexcompat.pk3dir                   normaldds ''
486                 ;;
487         release-pack-needsx11)
488                 release_common
489                 case "$DISPLAY" in
490                         '')
491                                 verbose startx "$SELF" release-pack -- /usr/bin/Xvfb :7
492                                 ;;
493                         *)
494                                 verbose "$SELF" release-pack
495                                 ;;
496                 esac
497                 ;;
498         release-zip)
499                 release_common
500                 stamp=`cat Xonotic/stamp.txt`
501                 pk3stamp=`cat Xonotic/pk3stamp.txt`
502                 # exe and dll files do not need +x, so this makes them eligible for 7zip compression too
503                 chmod a-x Xonotic/*.exe Xonotic/*.dll || true
504                 for suffix in '' '-noaes'; do
505                         # build the archives
506                         verbose mkzip Xonotic-$stamp-enginesource$suffix.zip \
507                                 Xonotic/Makefile \
508                                 Xonotic/source/darkplaces/ \
509                                 Xonotic/COPYING Xonotic/GPL-2 Xonotic/GPL-3
510                         verbose cp Xonotic-$stamp-enginesource$suffix.zip Xonotic-$stamp-engine$suffix.zip
511                         verbose mkzip Xonotic-$stamp-engine$suffix.zip \
512                                 Xonotic/*.dll \
513                                 Xonotic/bin32/*.dll \
514                                 Xonotic/bin64/*.dll \
515                                 Xonotic/*.app \
516                                 Xonotic/xonotic-* \
517                                 Xonotic/xonotic.exe
518                         verbose cp Xonotic-$stamp-engine$suffix.zip Xonotic-$stamp-common$suffix.zip
519                         verbose mkzip Xonotic-$stamp-common$suffix.zip \
520                                 Xonotic/source/d0_blind_id/ \
521                                 Xonotic/source/gmqcc/ \
522                                 Xonotic/source/qcsrc/ \
523                                 Xonotic/Docs \
524                                 Xonotic/misc \
525                                 Xonotic/gmqcc \
526                                 Xonotic/server \
527                                 Xonotic/key_0.d0pk \
528                                 Xonotic/data/font-unifont-$pk3stamp.pk3 \
529                                 Xonotic/data/font-xolonium-$pk3stamp.pk3
530                         verbose cp Xonotic-$stamp-enginesource$suffix.zip Xonotic-$stamp-source$suffix.zip
531                         verbose mkzip Xonotic-$stamp-source$suffix.zip \
532                                 Xonotic/source/d0_blind_id/ \
533                                 Xonotic/source/gmqcc/ \
534                                 Xonotic/source/qcsrc/ \
535                                 Xonotic/misc/logos
536                         verbose cp Xonotic-$stamp-common$suffix.zip Xonotic-$stamp$suffix.zip
537                         verbose mkzip0 Xonotic-$stamp$suffix.zip \
538                                 Xonotic/data/xonotic-$pk3stamp-data.pk3 \
539                                 Xonotic/data/xonotic-$pk3stamp-maps.pk3 \
540                                 Xonotic/data/xonotic-$pk3stamp-music.pk3 \
541                                 Xonotic/data/xonotic-$pk3stamp-nexcompat.pk3
542                         verbose cp Xonotic-$stamp-common$suffix.zip Xonotic-$stamp-low$suffix.zip
543                         verbose mkzip0 Xonotic-$stamp-low$suffix.zip \
544                                 Xonotic/data/xonotic-$pk3stamp-data-low.pk3 \
545                                 Xonotic/data/xonotic-$pk3stamp-maps-low.pk3 \
546                                 Xonotic/data/xonotic-$pk3stamp-music-low.pk3
547                         verbose mv Xonotic-$stamp-common$suffix.zip Xonotic-$stamp-high$suffix.zip
548                         verbose mkzip0 Xonotic-$stamp-high$suffix.zip \
549                                 Xonotic/data/xonotic-$pk3stamp-data-high.pk3 \
550                                 Xonotic/data/xonotic-$pk3stamp-maps-high.pk3 \
551                                 Xonotic/data/xonotic-$pk3stamp-music.pk3
552                         # let's pass crypto import laws of some nasty countries
553                         find Xonotic -name \*d0_rijndael\*.so -o -name \*d0_rijndael\*.dylib -o -name \*d0_rijndael\*.dll -o -name \*d0_rijndael\*.c -delete
554                 done
555                 verbose mkzip Xonotic-$stamp-mappingsupport.zip \
556                         Xonotic/mapping
557                 verbose mkzip0 Xonotic-$stamp-mappingsupport.zip \
558                         Xonotic/data/xonotic-$pk3stamp-maps-mapping.pk3
559                 verbose mkzip gmqcc-$stamp.zip \
560                         Xonotic/gmqcc \
561                         Xonotic/source/gmqcc
562                 ;;
563         release)
564                 release_common
565                 verbose "$SELF" release-prepare
566                 verbose "$SELF" release-maps
567                 verbose "$SELF" release-engine
568                 verbose "$SELF" release-qc
569                 verbose "$SELF" release-pack-needsx11
570                 verbose "$SELF" release-zip
571                 ;;
572         *)
573                 handled=false
574                 ;;
575 esac