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
28 if rm "$me.not-today" 2>/dev/null; then
29 echo "No build today (not-today marker removed)!"
35 ssh autobuild-release-uploader@beta.xonotic.org '
38 s0=`date -d "now - 7 days - 12 hours" +%s`;
39 s00=`date -d "now - 60 days - 12 hours" +%s`;
41 [ -f "$X" ] || continue;
46 [ x"$d" != x"latest" ] || continue;
49 if [ "$w" -ne 0 -a "$s" -lt "$s0" -o "$s" -lt "$s00" ]; then
54 cd ~/xonotic-release-build
56 # ./all checkout maint
58 ./all each git checkout HEAD^0
59 # add all feature branches we want
61 # map branches that we include:
62 # winners in the poll for upcoming CTF maps
63 # maps near completion
66 ## origin/divVerent/rebase/for-autobuild \
68 ## b=$b ./all each sh -c 'if git rev-parse $b >/dev/null 2>&1; then git merge $b; fi'
74 while HEAD http://xonotic:g-23@beta.xonotic.org/autobuild/"$RELEASETYPEDIR""Xonotic-$d.zip"; do
78 RELEASEDATE=$d xvfb-run ./all release
79 for X in Xonotic-$d*.zip; do
80 ln -snf "$X" "Xonotic-latest${X#Xonotic-$d}"
82 rsync -vaSHP Xonotic*.zip autobuild-release-uploader@beta.xonotic.org:HTML/autobuild/"$RELEASETYPEDIR"
83 if [ -z "$RELEASETYPEDIR" ]; then
84 ssh autobuild-release-uploader@beta.xonotic.org sh update-rsync.sh "$d"
86 echo "Finished a new $RELEASETYPENAME at http://beta.xonotic.org/autobuild/$RELEASETYPEDIR" | $IRCSPAM