3 if [ -z "$RELEASETYPE" ]; then
4 export RELEASETYPE=autobuild
5 #export RELEASETYPE=release
11 RELEASETYPENAME="$RELEASETYPE"
14 RELEASETYPEDIR="$RELEASETYPE/"
15 RELEASETYPENAME="Release Candidate"
18 RELEASETYPEDIR="$RELEASETYPE/"
19 RELEASETYPENAME="$RELEASETYPE-like build"
23 # is being run as cronjob, better set PATH
24 export PATH=/home/xonotic-build/ccache:/home/xonotic-build/bin:/usr/local/bin:/usr/bin:/bin:/usr/games
26 # TEST: use s2tc, high quality
30 export CACHEDIR=$HOME/.xonotic-cached-converter-crunch
31 export dds_tool=crunch
34 export HOSTS_THAT_ARE_MYSELF='xonotic-build-win32 xonotic-build-win64 xonotic-build-osx'
35 export HOSTS_THAT_ARE_SCHROOT='xonotic-build-linux64'
40 if rm "$me.not-today" 2>/dev/null; then
41 echo "No build today (not-today marker removed)!"
47 test -z "$RELEASETYPEDIR" && ssh autobuild-release-uploader@beta.xonotic.org '
49 s0=`date -d "now - 7 days - 12 hours" +%s`;
50 s00=`date -d "now - 60 days - 12 hours" +%s`;
52 [ -f "$X" ] || continue;
57 [ x"$d" != x"latest" ] || continue;
60 if [ "$w" -ne 0 -a "$s" -lt "$s0" -o "$s" -lt "$s00" ]; then
66 cd ~/xonotic-release-build
68 # ./all checkout maint
70 ./all each git checkout HEAD^0
71 # add all feature branches we want
73 # map branches that we include:
74 # winners in the poll for upcoming CTF maps
75 # maps near completion
78 # origin/divVerent/selfbuildagain \
80 # b=$b ./all each sh -c 'if git rev-parse $b >/dev/null 2>&1; then git merge $b; fi'
83 ./all each git restore-mtime --commit-time # adding --merge would be more correct but is slow and hits git limits
87 while HEAD -C xonotic:g-23 http://beta.xonotic.org/autobuild/"$RELEASETYPEDIR""Xonotic-$d.zip"; do
91 RELEASEDATE=$d ./all release
92 sha512sum Xonotic-$d*.zip > Xonotic-$d.sha512
93 if [ -z "$RELEASETYPEDIR" ]; then
94 sleep 1 # newer timestamps for correct file sort order in web gui
95 for X in Xonotic-$d*.zip; do
96 ln -snf "$X" "Xonotic-latest${X#Xonotic-$d}"
98 sha512sum Xonotic-latest*.zip > Xonotic-latest.sha512
100 rsync -vaSHP Xonotic*.zip Xonotic*.sha512 autobuild-release-uploader@beta.xonotic.org:"$RELEASETYPEDIR"
101 if [ -z "$RELEASETYPEDIR" ]; then
102 ssh autobuild-release-uploader@beta.xonotic.org sh ../../update-rsync.sh "$d"
104 # pipeline files, see: .gitlab-ci.yml in xonotic-data.pk3dir
105 cp data/stormkeep-????????????????????????????????????????-????????????????????????????????????????.pk3 stormkeep.pk3
106 PIPELINE_FILES="gmqcc/gmqcc Xonotic/xonotic-linux64-dedicated stormkeep.pk3"
107 rsync -vSP $PIPELINE_FILES autobuild-release-uploader@beta.xonotic.org:../pipeline-bin/
110 echo "Finished a new $RELEASETYPENAME at http://beta.xonotic.org/autobuild/$RELEASETYPEDIR" | $IRCSPAM