From 5509af04c0382afd07e18e605e5272146463ec3d Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Wed, 29 Sep 2010 15:34:16 +0200 Subject: [PATCH] clean up pk3s properly --- misc/tools/xonotic-map-compiler-autobuild | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/misc/tools/xonotic-map-compiler-autobuild b/misc/tools/xonotic-map-compiler-autobuild index 4733758c..3289aef9 100755 --- a/misc/tools/xonotic-map-compiler-autobuild +++ b/misc/tools/xonotic-map-compiler-autobuild @@ -263,7 +263,17 @@ case "$1" in 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" -- 2.39.2