build_cachedir="$HOME/xonotic-map-compiler.cache/"
screenshot_cachedir="$HOME/xonotic-map-screenshot.cache/"
build_override="-bsp_timeout 900 -vis_timeout 3600 -light_timeout 14400 -minimap_timeout 900 -scale_timeout 900"
-screenshot_override="9 300"
+screenshot_override="9 300 +g_ctf 1"
getthemap_fail=false
build)
cd data/xonotic-maps.pk3dir
git for-each-ref 'refs/remotes' | while read -r HASH TYPE REFNAME; do
+ case "$REFNAME" in
+ */archived/*)
+ continue
+ ;;
+ esac
if [ -f "$build_cachedir/$HASH" ]; then
continue
fi
screenshot)
cd data/xonotic-maps.pk3dir
git for-each-ref 'refs/remotes' | while read -r HASH TYPE REFNAME; do
+ case "$REFNAME" in
+ */archived/*)
+ continue
+ ;;
+ esac
if [ -f "$screenshot_cachedir/$HASH" ]; then
continue
fi
git reset --hard
git clean -xfd
git checkout -f "$HASH"
+
+ cd ../..
+ mkdir -p "$bspdir" "$bspdir.old"
+ for b in "$bspdir"/*-????????????????????????????????????????-????????????????????????????????????????.pk3; do
+ if [ -e "$b" ]; then
+ mv "$b" "$bspdir.old"/
+ fi
+ done
+ cd data/xonotic-maps.pk3dir
allmaps getthemap "$http_url" "$bspdir.old" "$bspdir"
+
if ! $getthemap_fail; then
allmaps screenshotthemap "$REFNAME" "$HASH" "$http_url"
touch "$screenshot_cachedir/$HASH"