3 # is being run as cronjob, better set PATH
4 export PATH=/home/xonotic-build/bin:/usr/local/bin:/usr/bin:/bin:/usr/games
8 if ! lockfile-create "$me"; then
11 lockfile-touch "$me" & lockpid=$!
12 trap 'kill $lockpid || true; cd "$mepwd"; lockfile-remove "$me"' EXIT
13 trap 'exit 1' INT TERM
16 export HOSTS_THAT_ARE_MYSELF="xonotic-build-win32 xonotic-build-win64"
17 export HOSTS_THAT_ARE_DISABLED=""
20 s0=`date -d "now - 7 days - 12 hours" +%s`;
21 s00=`date -d "now - 60 days - 12 hours" +%s`;
23 [ -f "$X" ] || continue;
26 [ x"$d" != x"latest" ] || continue;
29 if [ "$w" -ne 0 -a "$s" -lt "$s0" -o "$s" -lt "$s00" ]; then
34 cd ~/xonotic-release-build
36 ./all each git checkout HEAD^0
37 # add all feature branches we want
39 # map branches that we include:
40 # winners in the poll for upcoming CTF maps
41 # maps near completion
44 origin/fruitiex/runningmanctf \
45 origin/mintox/geoplanetary
47 b=$b ./all each sh -c 'if git rev-parse $b >/dev/null 2>&1; then git merge $b; fi'
53 while HEAD http://xonotic:g-23@beta.xonotic.org/autobuild/"Xonotic-$d.zip"; do
57 RELEASETYPE=beta RELEASEDATE=$d ./all release
58 for X in Xonotic-$d*.zip; do
59 ln -snf "$X" "Xonotic-latest${X#Xonotic-$d}"
61 rsync -vaSHP Xonotic*.zip xonotic-beta:autobuild/
62 ssh xonotic-beta sh update-rsync.sh "$d"
63 echo "Finished a new beta build at http://beta.xonotic.org/autobuild/" | $IRCSPAM