From: Rudolf Polzer Date: Wed, 29 Sep 2010 13:34:16 +0000 (+0200) Subject: clean up pk3s properly X-Git-Tag: xonotic-v0.1.0preview~171 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=5509af04c0382afd07e18e605e5272146463ec3d;p=xonotic%2Fxonotic.git clean up pk3s properly --- 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"