- host=$1
- buildpath=$2
- maketargets=$3
- makeflags=$4
- srcdir=$5
- depsdir=$6
- targetfiles=$7
- set -x
- if [ -n "$targetfiles" ]; then
- case " $HOSTS_THAT_ARE_DISABLED " in
- *\ $host\ *)
- exit
- ;;
- esac
- case " $HOSTS_THAT_ARE_MYSELF " in
- *\ $host\ *)
- verbose rsync --delete -zLvaSHP "$srcdir"/ "$buildpath/"
- verbose rsync --delete -zLvaSHP "$depsdir"/*/ "$buildpath.deps/"
- verbose ln -snf "$buildpath.deps" "$buildpath/.deps"
- verbose eval make -C "$buildpath" clean $maketargets $makeflags
- for f in $targetfiles; do
- verbose mv "$buildpath/${f%:*}" "${f##*:}" || true
- done
- ;;
- *)
- verbose rsync --delete -zLvaSHP "$srcdir"/ "$host:$buildpath/"
- verbose rsync --delete -zLvaSHP "$depsdir"/*/ "$host:$buildpath.deps/"
- verbose ssh "$host" "[ -f /etc/profile ] && . /etc/profile; [ -f ~/.profile ] && . ~/.profile; export LC_ALL=C; ln -snf $buildpath.deps $buildpath/.deps && cd $buildpath && nice -`nice` make clean $maketargets $makeflags"
- for f in $targetfiles; do
- verbose rsync -zvaSHP "$host:$buildpath/${f%:*}" "${f##*:}" || true
- done
- ;;
- esac
- # now rebrand the binaries...
- for f in $targetfiles; do
- #verbose "$d0/misc/tools/rebrand-darkplaces-engine.sh" "${XONOTIC_BRAND:-$d0/misc/tools/xonotic.brand}" "${f##*:}" || true
- case "${f##*:}" in
- Xonotic/xonotic*.exe)
- verbose "$d0/misc/tools/change-icon-of-exe.sh" "$d0/misc/logos/icons_ico/xonotic.ico" "${f##*:}"
- ;;
- esac
- done
- fi
- ;;
- release-compile)
- release_common
- suffix=$1
- makeflags=$2
- gmqcc_maketargets=$3
- gmqcc_files=$4
- darkplaces_maketargets=$5
- darkplaces_files=$6
- host=xonotic-build-$suffix
- verbose "$SELF" release-compile-run "$host" /tmp/gmqcc.build."$suffix" "$gmqcc_maketargets" "$makeflags" "Xonotic/source/gmqcc" "$d0/misc/builddeps/$suffix" "$gmqcc_files"
- verbose "$SELF" release-compile-run "$host" /tmp/Darkplaces.build."$suffix" "$darkplaces_maketargets" "$makeflags" "Xonotic/source/darkplaces" "$d0/misc/builddeps/$suffix" "$darkplaces_files"
+ 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/$dpname"
+ [ -s "$binary" ] || rm -f "$binary"
+ [ -f "$binary" ]
+ case "$binary" in
+ Xonotic/*osx*|Xonotic/*linux*)
+ chmod +x "$binary"
+ ;;
+ esac