From: Rudolf Polzer Date: Tue, 21 Feb 2012 13:45:54 +0000 (+0100) Subject: fix handling of the logs X-Git-Tag: xonotic-v0.6.0~20 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=12918d22b9327ca1aabcccbaf32ed93503c031ed;p=xonotic%2Fxonotic.git fix handling of the logs --- diff --git a/misc/tools/xonotic-map-compiler-autobuild b/misc/tools/xonotic-map-compiler-autobuild index 30f33433..4d2798f0 100755 --- a/misc/tools/xonotic-map-compiler-autobuild +++ b/misc/tools/xonotic-map-compiler-autobuild @@ -222,8 +222,8 @@ screenshotthemap() continue fi - rm -rf ~/.xonotic - mkdir -p ~/.xonotic + rm -rf ~/.xonotic/data + mkdir -p ~/.xonotic/data ( cd ../.. if [ -n "$DISPLAY" ]; then @@ -238,16 +238,16 @@ screenshotthemap() ;; esac fi - ) 2>&1 | tee ~/.xonotic/autoscreenshot.log + ) 2>&1 | tee ~/.xonotic/data/autoscreenshot.log good=false if mv ~/.xonotic/data/screenshots "$M-$blobhash"; then - ss2spam "$M" "$url?d" "$REFNAME" "$commithash" 0 > "maps/$M.ircss" + ss2spam "$M" "$url?d" "$REFNAME" "$commithash" 0 > ~/.xonotic/data/"$M.ircss" else mkdir "$M-$blobhash" - ss2spam "$M" "$url?d" "$REFNAME" "$commithash" 1 > "maps/$M.ircss" + ss2spam "$M" "$url?d" "$REFNAME" "$commithash" 1 > ~/.xonotic/data/"$M.ircss" fi - mv "maps/$M.ircss" "$M-$blobhash"/ - mv ~/.xonotic/autoscreenshot.log "$M-$blobhash"/ || mkdir -p "$M-$blobhash" + mv ~/.xonotic/data/"$M.ircss" "$M-$blobhash"/ + mv ~/.xonotic/data/autoscreenshot.log "$M-$blobhash"/ chmod 1777 "$M-$blobhash" ln -snf "../$M-$blobhash" "$M" # from ALL branches, so beware! rsync -vaSHP "$M-$blobhash" "$url_ssh"