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
30 export HOSTS_THAT_ARE_MYSELF='xonotic-build-linux64 xonotic-build-win32 xonotic-build-win64 xonotic-build-osx'
35 if rm "$me.not-today" 2>/dev/null; then
36 echo "No build today (not-today marker removed)!"
42 test -z "$RELEASETYPEDIR" && ssh autobuild-release-uploader@beta.xonotic.org '
44 s0=`date -d "now - 7 days - 12 hours" +%s`;
45 s00=`date -d "now - 60 days - 12 hours" +%s`;
47 [ -f "$X" ] || continue;
52 [ x"$d" != x"latest" ] || continue;
55 if [ "$w" -ne 0 -a "$s" -lt "$s0" -o "$s" -lt "$s00" ]; then
61 cd ~/xonotic-release-build
63 # ./all checkout maint
65 ./all each git checkout HEAD^0
66 # add all feature branches we want
68 # map branches that we include:
69 # winners in the poll for upcoming CTF maps
70 # maps near completion
73 # origin/divVerent/selfbuildagain \
75 # b=$b ./all each sh -c 'if git rev-parse $b >/dev/null 2>&1; then git merge $b; fi'
81 while HEAD -C xonotic:g-23 http://beta.xonotic.org/autobuild/"$RELEASETYPEDIR""Xonotic-$d.zip"; do
85 RELEASEDATE=$d ./all release
86 sha512sum Xonotic-$d*.zip > Xonotic-$d.sha512
87 for X in Xonotic-$d*.zip; do
88 ln -snf "$X" "Xonotic-latest${X#Xonotic-$d}"
90 sha512sum Xonotic-latest*.zip > Xonotic-latest.sha512
91 rsync -vaSHP Xonotic*.zip Xonotic*.sha512 autobuild-release-uploader@beta.xonotic.org:"$RELEASETYPEDIR"
92 if [ -z "$RELEASETYPEDIR" ]; then
93 ssh autobuild-release-uploader@beta.xonotic.org sh ../../update-rsync.sh "$d"
95 PIPELINE_GMQCC=gmqcc/gmqcc
96 PIPELINE_DP=Xonotic/xonotic-linux64-dedicated
97 if [ -x "$PIPELINE_GMQCC" ] && [ -x "$PIPELINE_DP" ]; then
98 rsync -vSP "$PIPELINE_GMQCC" "$PIPELINE_DP" autobuild-release-uploader@beta.xonotic.org:../pipeline-bin/
101 echo "Finished a new $RELEASETYPENAME at http://beta.xonotic.org/autobuild/$RELEASETYPEDIR" | $IRCSPAM