3 if [ -z "$RELEASETYPE" ]; then
4 export RELEASETYPE=autobuild
5 #export RELEASETYPE=release
11 RELEASETYPENAME="$RELEASETYPE"
14 RELEASETYPEDIR="$RELEASETYPE/"
15 RELEASETYPENAME="$RELEASETYPE-like build"
19 # is being run as cronjob, better set PATH
20 export PATH=/home/xonotic-build/ccache:/home/xonotic-build/bin:/usr/local/bin:/usr/bin:/bin:/usr/games
22 # TEST: use s2tc, high quality
26 export CACHEDIR=$HOME/.xonotic-cached-converter-crunch
27 export dds_tool=crunch
32 if rm "$me.not-today" 2>/dev/null; then
33 echo "No build today (not-today marker removed)!"
39 ssh autobuild-release-uploader@beta.xonotic.org '
42 s0=`date -d "now - 7 days - 12 hours" +%s`;
43 s00=`date -d "now - 60 days - 12 hours" +%s`;
45 [ -f "$X" ] || continue;
50 [ x"$d" != x"latest" ] || continue;
53 if [ "$w" -ne 0 -a "$s" -lt "$s0" -o "$s" -lt "$s00" ]; then
58 cd ~/xonotic-release-build
60 # ./all checkout maint
62 ./all each git checkout HEAD^0
63 # add all feature branches we want
65 # map branches that we include:
66 # winners in the poll for upcoming CTF maps
67 # maps near completion
70 ## origin/divVerent/rebase/for-autobuild \
72 ## b=$b ./all each sh -c 'if git rev-parse $b >/dev/null 2>&1; then git merge $b; fi'
78 while HEAD -C xonotic:g-23 http://beta.xonotic.org/autobuild/"$RELEASETYPEDIR""Xonotic-$d.zip"; do
82 RELEASEDATE=$d xvfb-run ./all release
83 for X in Xonotic-$d*.zip; do
84 ln -snf "$X" "Xonotic-latest${X#Xonotic-$d}"
86 rsync -vaSHP Xonotic*.zip autobuild-release-uploader@beta.xonotic.org:HTML/autobuild/"$RELEASETYPEDIR"
87 if [ -z "$RELEASETYPEDIR" ]; then
88 ssh autobuild-release-uploader@beta.xonotic.org sh update-rsync.sh "$d"
90 echo "Finished a new $RELEASETYPENAME at http://beta.xonotic.org/autobuild/$RELEASETYPEDIR" | $IRCSPAM