6 # I use this in EVERY shell script ;)
11 while ! [ -f ./all ]; do
12 if [ x"`pwd`" = x"/" ]; then
13 echo "Cannot find myself."
14 echo "Please run this script with the working directory inside a Xonotic checkout."
22 # If we are on WINDOWS:
27 # Windows hates users. So this script has to copy itself elsewhere first...
28 cp "$SELF" ../all.xonotic.sh
29 export WE_HATE_OUR_USERS=1
30 exec ../all.xonotic.sh "$@"
41 self=`git hash-object "$SELF"`
44 self_new=`git hash-object "$SELF"`
45 if [ x"$self" != x"$self_new" ]; then
46 msg "./all has changed."
47 if [ -z "$XONOTIC_FORBID_RERUN_ALL" ]; then
48 msg "Rerunning the requested operation to make sure."
49 export XONOTIC_FORBID_RERUN_ALL=1
52 msg "Please try $SELF update, and then retry your requested operation."
69 echo "the root directory"
79 if git ls-files -u | grep ' 1 '; then
81 echo "MERGE CONFLICT."
82 echo "change into the \"$1\" project directory, and then:"
83 echo "- edit the files mentioned above with your favorite editor,"
84 echo " and fix the conflicts (marked with <<<<<<< blocks)"
85 echo "- for binary files, you can select the files using"
86 echo " git checkout --ours or git checkout --theirs"
87 echo "- when done with a file, 'git add' the file"
88 echo "- when done, 'git commit'"
97 while [ x"$yesno" != x"y" -a x"$yesno" != x"n" ]; do
108 check_mergeconflict "$1"
113 data/xonotic-data.pk3dir | | master |
114 data/xonotic-maps.pk3dir | | master |
115 data/xonotic-music.pk3dir | | master |
116 data/xonotic-nexcompat.pk3dir | | master |
117 mediasource | | master |
118 darkplaces | | div0-stable | svn
119 fteqcc | git://github.com/Blub/qclib.git | master |
120 div0-gittools | git://git.icculus.org/divverent/div0-gittools.git | master |
121 netradiant | | master |
122 d0_blind_id | http://github.com/divVerent/d0_blind_id.git | master |
124 # todo: in darkplaces, change repobranch to div0-stable
126 repos=`echo "$repos_urls" | grep . | cut -d '|' -f 1 | tr -d ' '`
128 base=`git config remote.origin.url`
131 base=${base%xonotic.git}
134 echo "The main repo is not xonotic.git, what have you done?"
141 repo_t=`echo "$repos_urls" | grep "^$1 " | cut -d '|' -f 2 | tr -d ' '`
142 if [ -n "$repo_t" ]; then
152 if [ x"$1" = x"." ]; then
153 echo "$base""xonotic.git"
155 echo "$base${1##*/}.git"
162 repo_t=`echo "$repos_urls" | grep "^$1 " | cut -d '|' -f 3 | tr -d ' '`
163 if [ -n "$repo_t" ]; then
172 echo "$repos_urls" | grep "^$1 " | cut -d '|' -f 4 | tr -d ' '
175 repos=`for d in $repos; do
177 if [ x"$p" = x"$d" ] || [ -d "$d" ] || ! { [ -f "$d.no" ] || [ -f "$p" ]; }; then
182 if [ "$#" = 0 ]; then
191 if [ x"$1" = x"-N" ]; then
196 branch=`repobranch "$d"`
197 if [ -d "$d0/$d" ]; then
199 enter "$d0/$d" verbose
200 verbose git config remote.origin.url "$url"
201 verbose git config remote.origin.fetch "+refs/heads/*:refs/remotes/origin/*"
203 verbose git config remote.origin.autocrlf input
205 r=`git symbolic-ref HEAD`
207 if git config branch.$r.remote >/dev/null 2>&1; then
208 if ! verbose git pull; then
209 check_mergeconflict "$d"
210 echo "Pulling failed. Press ENTER to continue, or Ctrl-C to abort."
216 checkself "$cmd" "$@"
218 verbose git remote prune origin
222 verbose git clone "$url" "$d0/$d"
223 enter "$d0/$d" verbose
224 if [ "$branch" != "master" ]; then
225 verbose git checkout --track -b "$branch" origin/"$branch"
232 misc/tools/xonotic-map-compiler-autobuild download
237 if [ -z "$branch" ]; then
240 branch=${remote#origin/}
251 enter "$d0/$d" verbose
253 if [ -n "$b" ] && git rev-parse "refs/heads/$b" >/dev/null 2>&1; then
255 verbose git checkout "$b"
256 elif [ -n "$b" ] && git rev-parse "refs/remotes/$remote/$b" >/dev/null 2>&1; then
258 verbose git checkout --track -b "$b" "$remote/$b"
261 if git rev-parse "refs/heads/$b" >/dev/null 2>&1; then
263 verbose git checkout "$b"
264 elif git rev-parse "refs/remotes/$remote/$b" >/dev/null 2>&1; then
266 verbose git checkout --track -b "$b" "$remote/$b"
268 echo "WTF? Not even branch $b doesn't exist in $d"
273 checkself "$cmd" "$@"
277 echo "The requested branch was not found in any repository."
285 if [ -z "$branch" ]; then
289 if [ -z "$branch" ]; then
292 r=`git symbolic-ref HEAD`
299 dv=`visible_repo_name "$d"`
300 enter "$d0/$d" verbose
301 if git rev-parse "refs/heads/$branch" >/dev/null 2>&1; then
302 echo "Already having this branch in $dv."
304 if yesno "Branch in $dv?"; then
305 if [ -n "$srcbranch" ]; then
308 b=origin/"`repobranch "$d"`"
309 verbose git fetch origin || true
311 # TODO do this without pushing
312 verbose git checkout -b "$branch" "$b"
313 verbose git config "branch.$branch.remote" "$remote"
314 verbose git config "branch.$branch.merge" "refs/heads/$branch"
324 cd "$d0/$d" # am in a pipe, shouldn't use enter
325 git branch -a -v -v | cut -c 3- | sed "s/^(no branch)/(no_branch)/" | sed "s,^,$d ,"
330 while read -r d BRANCH REV UPSTREAM TEXT; do
331 if [ x"$BRANCH" = x"`repobranch "$d"`" ]; then
336 UPSTREAM=${UPSTREAM#\[}
337 UPSTREAM=${UPSTREAM%\]}
338 UPSTREAM=${UPSTREAM%:*}
341 TEXT="$UPSTREAM $TEXT"
345 if [ x"$REV" = x"->" ]; then
348 BRANCH=${BRANCH#remotes/}
349 ID=`echo "$BRANCH" | tr -c "A-Za-z0-9." "_"`
350 branches_list="$branches_list $BRANCH" # TEH SORT MAKEZ IT UNIEQ
351 eval "r=\$branches_repos_$ID"
360 eval "branches_repos_$ID=\$r"
362 echo -n "$branches_list" | xargs -n 1 echo | sort -u | while IFS= read -r BRANCH; do
363 ID=`echo "$BRANCH" | tr -c "A-Za-z0-9." "_"`
364 eval "r=\$branches_repos_$ID"
365 printf "%-60s %s\n" "$BRANCH" "$r"
372 dv=`visible_repo_name "$d"`
373 enter "$d0/$d" verbose
374 r=`git symbolic-ref HEAD`
376 if git log HEAD..origin/"`repobranch "$d"`" | grep .; then
377 # we have uncommitted changes
378 if yesno "Could merge from \"`repobranch "$d"`\" into \"$r\" in $dv. Do it?"; then
379 if ! verbose git merge origin/"`repobranch "$d"`"; then
380 check_mergeconflict "$d"
381 exit 1 # this should ALWAYS be fatal
391 dv=`visible_repo_name "$d"`
392 enter "$d0/$d" verbose
393 r=`git symbolic-ref HEAD`
395 diffdata=`git diff --color HEAD`
396 if [ -n "$diffdata" ]; then
397 # we have uncommitted changes
398 if yesno "Uncommitted changes in \"$r\" in $dv. Commit?" 'echo "$diffdata" | less -r'; then
399 verbose git commit -a
402 rem=`git config "branch.$r.remote" || echo origin`
403 bra=`git config "branch.$r.merge" || echo "$r"`
404 upstream="$rem/${bra#refs/heads/}"
405 if ! git rev-parse "$upstream" >/dev/null 2>&1; then
406 upstream="origin/`repobranch "$d"`"
408 logdata=`git log --color "$upstream".."$r"`
409 if [ -n "$logdata" ]; then
410 if yesno "Push \"$r\" in $dv?" 'echo "$logdata" | less -r'; then
411 verbose git push "$rem" HEAD
414 if [ x"$submit" = x"-s" ]; then
417 verbose git push "$rem" HEAD:"${bra%%/*}/finished/${bra#*/}"
425 if [ -n "$WE_HATE_OUR_USERS" ]; then
426 TARGETS="sv-debug cl-debug"
427 if [ -z "$CC" ]; then
430 elif [ x"`uname`" = x"Darwin" ]; then
433 TARGETS="sv-debug cl-debug sdl-debug"
436 # AGL cannot be compiled on systems with a kernel > 10.x (Snow Leopard)
437 TARGETS="sv-debug sdl-debug"
440 export CC="gcc -I$PWD/misc/buildfiles/osx/Xonotic-SDL.app/Contents/Frameworks/SDL.framework/Headers -F$PWD/misc/buildfiles/osx/Xonotic-SDL.app/Contents/Frameworks"
442 TARGETS="sv-debug cl-debug sdl-debug"
463 cleanqc=true # version info
466 if [ $# -gt 0 ] && [ x"$1" = x"" ]; then
467 # if we give the command make the arg "", it will surely fail (invalid filename),
468 # so better handle it as an empty client option
471 elif [ -n "$1" ]; then
473 TARGETS_SAVE=$TARGETS
478 TARGETS="$TARGETS sdl-debug"
481 TARGETS="$TARGETS cl-debug"
484 TARGETS="$TARGETS sv-debug"
487 BAD_TARGETS="$BAD_TARGETS $X"
491 if [ -n "$TARGETS" ]; then # at least a valid client
493 else # no valid client, let's assume this option is not meant to be a client then
494 TARGETS=$TARGETS_SAVE
498 if [ -z "$MAKEFLAGS" ]; then
499 if [ -f /proc/cpuinfo ]; then
500 ncpus=$((`grep -c '^processor :' /proc/cpuinfo`+0))
501 if [ $ncpus -gt 1 ]; then
507 MAKEFLAGS="$MAKEFLAGS DP_LINK_TO_LIBJPEG=1"
510 if [ -n "$WE_HATE_OUR_USERS" ]; then
511 MAKEFLAGS="$MAKEFLAGS DP_MAKE_TARGET=mingw"
515 enter "$d0/d0_blind_id" verbose
516 if ! [ -f Makefile ]; then
517 verbose sh autogen.sh
521 verbose make $MAKEFLAGS clean
523 verbose make $MAKEFLAGS
525 enter "$d0/fteqcc" verbose
527 verbose make $MAKEFLAGS clean
529 verbose make $MAKEFLAGS
531 enter "$d0/data/xonotic-data.pk3dir" verbose
533 verbose make FTEQCC="$d0/fteqcc/fteqcc.bin" "$@" $MAKEFLAGS clean
535 verbose make FTEQCC="$d0/fteqcc/fteqcc.bin" "$@" $MAKEFLAGS
537 enter "$d0/darkplaces" verbose
538 if [ x"$BAD_TARGETS" = x" " ]; then
539 echo "Warning: invalid empty client, default clients will be used."
542 verbose make $MAKEFLAGS clean
544 for T in $TARGETS; do
545 verbose make $MAKEFLAGS "$@" "$T"
547 for T in $BAD_TARGETS; do
548 echo "Warning: discarded invalid client $T."
551 verbose "$SELF" update-maps
554 if [ -n "$WE_HATE_OUR_USERS" ]; then
556 export PATH="$d0/misc/buildfiles/w32:$d0/d0_blind_id/.libs/$PATH"
557 elif [ x"`uname`" = x"Darwin" ]; then
558 export DYLD_LIBRARY_PATH="$d0/misc/buildfiles/osx/Xonotic-SDL.app/Contents/MacOS:$d0/d0_blind_id/.libs"
559 export DYLD_FRAMEWORK_PATH="$d0/misc/buildfiles/osx/Xonotic-SDL.app/Contents/Frameworks"
562 export LD_LIBRARY_PATH="$d0/d0_blind_id/.libs"
566 sdl|glx|agl|dedicated)
575 if ! [ -x "darkplaces/darkplaces$client" ]; then
576 if [ -x "darkplaces/darkplaces$client.exe" ]; then
579 echo "Client darkplaces/darkplaces$client not found, aborting"
583 set -- "darkplaces/darkplaces$client" -nexuiz -customgamename Xonotic -customgamedirname1 data -customgamedirname2 "" -customgamescreenshotname xonotic -customgameuserdirname xonotic -mygames "$@"
585 # if pulseaudio is running: USE IT
586 if [ -z "$SDL_AUDIODRIVER" ] && ! [ -n "$WE_HATE_OUR_USERS" ] && ! [ x"`uname`" = x"Darwin" ]; then
587 if ps -C pulseaudio >/dev/null; then
588 if ldd /usr/lib/libSDL.so 2>/dev/null | grep pulse >/dev/null; then
589 export SDL_AUDIODRIVER=pulse
594 if [ -n "$USE_GDB" ]; then
595 set -- gdb --args "$@"
601 if [ x"$1" = x"-k" ]; then
606 if verbose cd "$d0/$d"; then
618 patchdir=`mktemp -d -t save-patches.XXXXXX`
620 enter "$d0/$d" verbose
621 git branch -v -v | cut -c 3- | {
623 while read -r BRANCH REV UPSTREAM TEXT; do
626 UPSTREAM=${UPSTREAM#\[}
627 UPSTREAM=${UPSTREAM%\]}
628 UPSTREAM=${UPSTREAM%:*}
632 UPSTREAM=origin/"`repobranch "$d"`"
636 if [ x"$REV" = x"->" ]; then
639 if git format-patch -o "$patchdir/$i" "$UPSTREAM".."$BRANCH"; then
640 echo "$d" > "$patchdir/$i/info.txt"
641 echo "$BRANCH" >> "$patchdir/$i/info.txt"
642 echo "$UPSTREAM" >> "$patchdir/$i/info.txt"
643 echo "$TRACK" >> "$patchdir/$i/info.txt"
646 rm -rf "$patchdir/$i"
651 ( cd "$patchdir" && tar cvzf - . ) > "$outfile"
656 patchdir=`mktemp -d -t restore-patches.XXXXXX`
657 ( cd "$patchdir" && tar xvzf - ) < "$infile"
659 for P in "$patchdir"/*/info.txt; do
666 verbose git checkout HEAD^0
667 verbose git branch -D "$BRANCH"
668 if [ x"$TRACK" = x"true" ]; then
669 verbose git checkout --track -b "$BRANCH" "$UPSTREAM"
671 verbose git branch -b "$BRANCH" "$UPSTREAM"
683 report=$report"$*$LF"
688 report=$report" $*$LF"
693 o=`"$@" | sed 's/^/ /' || true`
697 enter "$d0/$d" verbose
698 base="`repobranch "$d"`"
700 for ref in `git for-each-ref --format='%(refname)' refs/remotes/origin/`; do
701 case "${ref#refs/remotes/origin/}" in
714 if [ -n "$branch" ]; then
715 if [ x"$branch" != x"${ref#refs/remotes/origin/}" ]; then
724 l0=`git rev-list "$base".."$ref" | wc -l`
725 l1=`git rev-list master.."$ref" | wc -l`
726 if [ $l0 -gt $l1 ]; then
733 reportecho " Branch $ref:"
734 note=`GIT_NOTES_REF=refs/notes/admin-merge git notes show "$ref" 2>/dev/null || true`
735 logdata=`git log --color "$realbase".."$ref"`
736 if [ -z "$logdata" ]; then
737 reportecho4 "--> not merging, no changes vs master"
738 if yesno "Branch \"$ref\" probably should get deleted. Do it?" ''; then
739 git push origin :"${ref#refs/remotes/origin/}"
740 reportecho4 "--> branch deleted"
743 diffdata=`git diff --color --find-copies-harder --ignore-space-change "$realbase"..."$ref"`
744 if [ -z "$diffdata" ]; then
745 reportecho4 "--> not merging, no changes vs master, branch contains redundant history"
746 if yesno "Branch \"$ref\" probably should get deleted. Do it?" '{ echo "$logdata"; } | less -r'; then
747 git push origin :"${ref#refs/remotes/origin/}"
748 reportecho4 "--> branch deleted"
750 elif [ -z "$branch" ] && [ -n "$note" ]; then
751 reportdo4 echo "$note"
752 reportecho4 "--> not merging, already had this one rejected before"
753 elif yesno "Branch \"$ref\" may want to get merged. Do it?" '{ echo "$logdata"; echo "$diffdata"; } | less -r'; then
754 git checkout "$realbase"
755 org=`git rev-parse HEAD`
756 if ! git merge --no-ff "$ref" 2>&1 | tee "$t" && ! { git ls-files -u | grep ' 1 ' >/dev/null; }; then
757 git reset --hard "$org"
758 GIT_NOTES_REF=refs/notes/admin-merge git notes edit -m "Merge failed:$LF`cat "$t"`" "$ref"
760 reportecho4 "--> merge failed"
761 elif ! "$SELF" compile -n 2>&1 | tee "$t"; then
762 git reset --hard "$org"
763 GIT_NOTES_REF=refs/notes/admin-merge git notes edit -m "Compile failed:$LF`cat "$t"`" "$ref"
765 reportecho4 "--> compile failed"
766 elif ! yesno "Still merge \"$ref\" into `git symbolic-ref HEAD` of $d? Maybe you want to test first."; then
767 git reset --hard "$org"
768 GIT_NOTES_REF=refs/notes/admin-merge git notes edit "$ref"
769 note=`GIT_NOTES_REF=refs/notes/admin-merge git notes show "$ref" 2>/dev/null || true`
770 if [ x"$note" = x"del" ]; then
771 git push origin :"${ref#refs/remotes/origin/}"
772 reportecho4 "--> test failed, branch deleted"
773 elif [ -n "$note" ]; then
774 reportdo4 echo "$note"
775 reportecho4 "--> test failed"
777 reportecho4 "--> test failed, postponed"
781 case ",`repoflags "$d"`," in
783 # we do quite a mess here... luckily we know $org
784 git fetch # svn needs to be current
785 git rebase -i --onto origin/master "$org"
786 git svn dcommit --add-author-from
787 git reset --hard "$org"
793 reportecho4 "--> MERGED"
794 if yesno "Delete original branch \"$ref\"?"; then
795 git push origin :"${ref#refs/remotes/origin/}"
796 reportecho4 "--> branch deleted"
800 GIT_NOTES_REF=refs/notes/admin-merge git notes edit "$ref"
801 note=`GIT_NOTES_REF=refs/notes/admin-merge git notes show "$ref" 2>/dev/null || true`
802 if [ x"$note" = x"del" ]; then
803 git push origin :"${ref#refs/remotes/origin/}"
804 reportecho4 "--> branch deleted"
805 elif [ -n "$note" ]; then
806 reportdo4 echo "$note"
807 reportecho4 "--> rejected"
809 reportecho4 "--> postponed"
818 echo "$report" | ssh nexuiz@rm.endoftheinternet.org cat '>>' public_html/xonotic-merge-notes.txt
821 # release building goes here
823 mkdir -p Xonotic/"$1"
826 #"$SELF" each git clean -fxd
828 "$SELF" release-copy Docs/
829 "$SELF" release-copy misc/
830 "$SELF" release-copy server/
831 "$SELF" release-copy xonotic-linux-glx.sh
832 "$SELF" release-copy xonotic-linux-sdl.sh
833 "$SELF" release-mkdir data
834 "$SELF" release-mkdir fteqcc
837 rsync --exclude=.git -vaSHPAX "$1" Xonotic/"$1"
846 rsync --delete -zvaSHPAX "$srcdir"/ "$host:$buildpath/"
847 ssh "$host" ". ~/.profile && cd $buildpath && make clean $maketargets $makeflags"
848 for f in $targetfiles; do
849 rsync -zvaSHPAX "$host:$buildpath/${f%:*}" "${f##*:}"
855 fteqcc_maketargets=$3
857 darkplaces_maketargets=$5
859 "$SELF" release-compile-run "xonotic-build-$suffix" /tmp/fteqcc.build."$suffix" "$fteqcc_maketargets" "$makeflags" "fteqcc" "$fteqcc_files"
860 "$SELF" release-compile-run "xonotic-build-$suffix" /tmp/Darkplaces.build."$suffix" "$darkplaces_maketargets" "$makeflags" "fteqcc" "$darkplaces_files"
862 release-engine-win32)
863 rsync --exclude=.git -vaSHPAX Xonotic/misc/buildfiles/w32/* Xonotic/
864 "$SELF" release-compile win32 \
865 '"DP_MAKE_TARGET=mingw CC="i586-mingw32msvc-gcc -Wl,--dynamicbase -Wl,--nxcompat -g -DSUPPORTDIRECTX -DUSE_WSPIAPI_H -I$HOME/dp.win32/include -L$HOME/db.win32/lib" WINDRES="i586-mingw32msvc-windres" SDL_CONFIG="$HOME/dp.win32/bin/sdl-config"' \
866 win 'fteqcc.exe:Xonotic/fteqcc/fteqcc.exe' \
867 debug 'darkplaces.exe:xonotic.exe darkplaces-sdl.exe:xonotic-sdl.exe darkplaces-dedicated.exe:xonotic-dedicated.exe'
869 release-engine-win64)
870 rsync --exclude=.git -vaSHPAX Xonotic/misc/buildfiles/w32/* Xonotic/
871 "$SELF" release-compile win32 \
872 '"DP_MAKE_TARGET=mingw CC="amd64-mingw32msvc-gcc -Wl,--dynamicbase -Wl,--nxcompat -g -DSUPPORTDIRECTX -DUSE_WSPIAPI_H -I$HOME/dp.win64/include -L$HOME/db.win64/lib" WINDRES="amd64-mingw32msvc-windres" SDL_CONFIG="$HOME/dp.win64/bin/sdl-config"' \
873 win 'fteqcc.exe:Xonotic/fteqcc/fteqcc.exe' \
874 debug 'darkplaces.exe:xonotic-64.exe darkplaces-sdl.exe:xonotic-sdl-64.exe darkplaces-dedicated.exe:xonotic-dedicated-64.exe'
877 rsync --exclude=.git -vaSHPAX Xonotic/misc/buildfiles/osx/* Xonotic/
878 "$SELF" release-compile osx \
879 'CC="gcc -g -arch i386 -arch ppc -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.5.sdk -mmacosx-version-min=10.5 -I$HOME/dp.osx/include -L$HOME/dp.osx/lib"' \
880 all 'fteqcc.bin:Xonotic/fteqcc/fteqcc.osx' \
881 sdl-debug 'darkplaces-sdl:Xonotic/Xonotic-SDL.app/Contents/MacOS/xonotic-osx-sdl-bin'
883 release-engine-linux32)
884 "$SELF" release-compile linux32 \
885 'CC="gcc -m32 -g -Wl,--hash-style=sysv -I$HOME/dp.linux32/include -L$HOME/dp.linux32/lib" DP_MODPLUG_STATIC_LIBDIR=$HOME/dp.linux32/lib DP_LINK_TO_LIBJPEG=1' \
886 all 'fteqcc.bin:Xonotic/fteqcc/fteqcc.linux32' \
887 debug 'darkplaces-glx:Xonotic/xonotic-linux-linux32-glx darkplaces-sdl:Xonotic/xonotic-linux-linux32-sdl darkplaces-dedicated:Xonotic/xonotic-linux-linux32-dedicated'
889 release-engine-linux64)
890 "$SELF" release-compile linux64 \
891 'CC="gcc -m64 -g -Wl,--hash-style=sysv -I$HOME/dp.linux64/include -L$HOME/dp.linux64/lib" DP_MODPLUG_STATIC_LIBDIR=$HOME/dp.linux64/lib DP_LINK_TO_LIBJPEG=1' \
892 all 'fteqcc.bin:Xonotic/fteqcc/fteqcc.linux64' \
893 debug 'darkplaces-glx:Xonotic/xonotic-linux-linux64-glx darkplaces-sdl:Xonotic/xonotic-linux-linux64-sdl darkplaces-dedicated:Xonotic/xonotic-linux-linux64-dedicated'
896 "$SELF" release-engine-win32 &
897 "$SELF" release-engine-win64 &
898 "$SELF" release-engine-osx &
899 "$SELF" release-engine-linux32 &
900 "$SELF" release-engine-linux64 &
905 for X in data/*-????????????????????????????????????????-????????????????????????????????????????.pk3; do
907 cd Xonotic/data/xonotic-maps.pk3dir
914 # version numnber and stuff like that
917 verbose make -C Xonotic/data/xonotic-data.pk3dir FTEQCC="$d0/Xonotic/fteqcc/fteqcc.linux32" FTEQCCFLAGS_WATERMARK=
919 release-buildpk3-transform-raw)
922 release-buildpk3-transform-normal)
925 # texture: convert to jpeg and dds
927 export jpeg_qual_rgb=95
928 export jpeg_qual_a=99
932 find textures -type f -print0 | xargs -0 "$d0"/misc/tools/cached-converter.sh
934 release-buildpk3-transform-low)
937 # texture: convert to jpeg and dds
938 # music: reduce bitrate
940 export jpeg_qual_rgb=95
941 export jpeg_qual_a=99
945 find textures sound/cdtracks -type f -print0 | xargs -0 "$d0"/misc/tools/cached-converter.sh
959 rsync --exclude=.git -vaSHPAX "$src"/ "Xonotic/temp"
960 "$SELF" release-buildpk3-transform-$transform "Xonotic/temp"
962 zip -9r "../../$dst" . ########### 7za a -tzip -mx=9 "../../$dst" .
969 while [ "$#" -gt 1 ]; do
970 "$SELF" release-buildpk3 "$src" "Xonotic/${src%.pk3dir}$2.pk3" "$1"
976 "$SELF" release-buildpk3s data/font-dejavu.pk3dir raw ''
977 "$SELF" release-buildpk3s data/xonotic-data.pk3dir normal '' raw '-raw' low '-low'
978 "$SELF" release-buildpk3s data/xonotic-maps.pk3dir normal '' raw '-raw' low '-low'
979 "$SELF" release-buildpk3s data/xonotic-music.pk3dir normal '' raw '-raw' low '-low'
980 "$SELF" release-buildpk3s data/xonotic-nexcompat.pk3dir low ''
983 "$SELF" release-prepare
985 "$SELF" release-finish
988 "$SELF" release-engine
994 echo " $SELF push [-s]"
995 echo " $SELF branches"
996 echo " $SELF branch [<remote>] <branchname>"
997 echo " $SELF branch <remote> <branchname> <srcbranchname>"
998 echo " $SELF checkout [<remote>] <branchname>"
999 echo " $SELF compile [-c|-n] [<client>] <options>"
1000 echo " $SELF run [<client>] <options>"
1001 echo " $SELF each <command>"