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