X-Git-Url: https://git.xonotic.org/?p=xonotic%2Fxonotic.git;a=blobdiff_plain;f=misc%2Ftools%2Fall%2Frelease.subr;h=2b4699038731698ce3bb3a90bc92df5eae977883;hp=2835619be24b4d9cdbb6d9cab8f9422eef6f906e;hb=252fd9281721404fc15405ce704cd4a052c93211;hpb=9787afd328b82a8fd80a50b292995d28ccf6e6e7 diff --git a/misc/tools/all/release.subr b/misc/tools/all/release.subr index 2835619b..2b469903 100644 --- a/misc/tools/all/release.subr +++ b/misc/tools/all/release.subr @@ -207,52 +207,70 @@ case "$cmd" in release_common binary=$1 basename=${binary##*/} + dpname=darkplaces${basename#xonotic} rev=`( cd "$d0/darkplaces" && git rev-parse HEAD )` - verbose wget -O "$binary" "http://beta.xonotic.org/autobuild-bin/$rev/$basename" + verbose wget -O "$binary" "http://beta.xonotic.org/autobuild-bin/$rev/$dpname" + [ -s "$binary" ] || rm -f "$binary" + [ -f "$binary" ] # TODO eventually do the rebranding on travis too. case "$binary" in Xonotic/xonotic*.exe) verbose "$d0/misc/tools/change-icon-of-exe.sh" "$d0/misc/logos/icons_ico/xonotic.ico" "$binary" ;; + Xonotic/*osx*|Xonotic/*linux*) + chmod +x "$binary" + ;; esac ;; release-engine-win32) release_common - verbose "$SELF" release-getbinary Xonotic/xonotic.exe || true - verbose "$SELF" release-getbinary Xonotic/xonotic-sdl.exe || true - verbose "$SELF" release-getbinary Xonotic/xonotic-dedicated.exe || true + good=true + verbose "$SELF" release-getbinary Xonotic/xonotic.exe || good=false + verbose "$SELF" release-getbinary Xonotic/xonotic-wgl.exe || good=false + verbose "$SELF" release-getbinary Xonotic/xonotic-dedicated.exe || good=false + $good ;; release-engine-win64) release_common - verbose "$SELF" release-getbinary Xonotic/xonotic-x64.exe || true - verbose "$SELF" release-getbinary Xonotic/xonotic-x64-sdl.exe || true - verbose "$SELF" release-getbinary Xonotic/xonotic-x64-dedicated.exe || true + good=true + verbose "$SELF" release-getbinary Xonotic/xonotic-x64.exe || good=false + verbose "$SELF" release-getbinary Xonotic/xonotic-x64-wgl.exe || good=false + verbose "$SELF" release-getbinary Xonotic/xonotic-x64-dedicated.exe || good=false + $good ;; release-engine-osx) release_common - verbose "$SELF" release-getbinary Xonotic/Xonotic.app/Contents/MacOS/xonotic-osx-sdl-bin || true - verbose "$SELF" release-getbinary Xonotic/xonotic-osx-dedicated || true + good=true + verbose "$SELF" release-getbinary Xonotic/Xonotic.app/Contents/MacOS/xonotic-osx-sdl-bin || good=false + verbose "$SELF" release-getbinary Xonotic/xonotic-osx-dedicated || good=false + $good ;; release-engine-linux32) release_common - verbose "$SELF" release-getbinary Xonotic/xonotic-linux32-glx || true - verbose "$SELF" release-getbinary Xonotic/xonotic-linux32-sdl || true - verbose "$SELF" release-getbinary Xonotic/xonotic-linux32-dedicated || true + good=true + verbose "$SELF" release-getbinary Xonotic/xonotic-linux32-sdl || good=false + verbose "$SELF" release-getbinary Xonotic/xonotic-linux32-glx || good=false + verbose "$SELF" release-getbinary Xonotic/xonotic-linux32-dedicated || good=false + $good ;; release-engine-linux64) release_common - verbose "$SELF" release-getbinary Xonotic/xonotic-linux64-glx || true - verbose "$SELF" release-getbinary Xonotic/xonotic-linux64-sdl || true - verbose "$SELF" release-getbinary Xonotic/xonotic-linux64-dedicated || true + good=true + verbose "$SELF" release-getbinary Xonotic/xonotic-linux64-sdl || good=false + verbose "$SELF" release-getbinary Xonotic/xonotic-linux64-glx || good=false + verbose "$SELF" release-getbinary Xonotic/xonotic-linux64-dedicated || good=false + $good ;; release-engine) release_common # TODO report failures here. - verbose "$SELF" release-engine-linux32 || true - verbose "$SELF" release-engine-linux64 || true - verbose "$SELF" release-engine-win32 || true - verbose "$SELF" release-engine-win64 || true - verbose "$SELF" release-engine-osx || true + good=false + verbose "$SELF" release-engine-linux32 && good=true + verbose "$SELF" release-engine-linux64 && good=true + verbose "$SELF" release-engine-win32 && good=true + verbose "$SELF" release-engine-win64 && good=true + verbose "$SELF" release-engine-osx && good=true + $good ;; release-maps) release_common