# TEST: use s2tc, high quality
#export dds_tool=s2tc
+# Try crunch.
+export CACHEDIR=$HOME/.xonotic-cached-converter-crunch
+export dds_tool=crunch
+
mepwd=$PWD
me=$0
set -ex
-ssh autobuild-release-uploader@beta.xonotic.org '
+# TODO re-enable this cleanup script
+: ssh autobuild-release-uploader@beta.xonotic.org '
set -e;
cd HTML/autobuild/;
s0=`date -d "now - 7 days - 12 hours" +%s`;
d0=`date +%Y%m%d`
d=$d0
i=1
-while HEAD http://xonotic:g-23@beta.xonotic.org/autobuild/"$RELEASETYPEDIR""Xonotic-$d.zip"; do
+while HEAD -C xonotic:g-23 http://beta.xonotic.org/autobuild/"$RELEASETYPEDIR""Xonotic-$d.zip"; do
i=$(($i+1))
d="$d0"_"$i"
done
-RELEASEDATE=$d xvfb-run ./all release
+RELEASEDATE=$d ./all release
for X in Xonotic-$d*.zip; do
ln -snf "$X" "Xonotic-latest${X#Xonotic-$d}"
done
-rsync -vaSHP Xonotic*.zip autobuild-release-uploader@beta.xonotic.org:HTML/autobuild/"$RELEASETYPEDIR"
+rsync -vaSHP Xonotic*.zip autobuild-release-uploader@beta.xonotic.org:"$RELEASETYPEDIR"
if [ -z "$RELEASETYPEDIR" ]; then
- ssh autobuild-release-uploader@beta.xonotic.org sh update-rsync.sh "$d"
+ ssh autobuild-release-uploader@beta.xonotic.org sh ../../update-rsync.sh "$d"
fi
echo "Finished a new $RELEASETYPENAME at http://beta.xonotic.org/autobuild/$RELEASETYPEDIR" | $IRCSPAM
cd