]> git.xonotic.org Git - xonotic/xonotic.git/blobdiff - misc/tools/xonotic-map-compiler-autobuild
Merge branch 'master' of git://de.git.xonotic.org/xonotic/xonotic
[xonotic/xonotic.git] / misc / tools / xonotic-map-compiler-autobuild
index aefafea128c1c49e4536105abe69359a433724bf..ba99371ac14e7865896d86f3e89eba9cf69c029a 100755 (executable)
@@ -223,6 +223,7 @@ screenshotthemap()
        fi
 
        rm -rf ~/.xonotic
+       mkdir -p ~/.xonotic
        (
                cd ../..
                if [ -n "$DISPLAY" ]; then
@@ -237,7 +238,7 @@ screenshotthemap()
                                        ;;
                        esac
                fi
-       )
+       ) >~/.xonotic/autoscreenshot.log 2>&1
        if ! mv ~/.xonotic/data/screenshots "$M-$blobhash"; then
                if [ -n "$IRCSPAM" ]; then
                        #ss2spam "$M" "$url$M-$blobhash/" "$REFNAME" "$commithash" 1 > "maps/$M.ircss"
@@ -245,6 +246,7 @@ screenshotthemap()
                fi
                return 1
        fi
+       mv ~/.xonotic/autoscreenshot.log "$M-$blobhash"/ || true
        if [ -n "$IRCSPAM" ]; then
                #ss2spam "$M" "$url$M-$blobhash/" "$REFNAME" "$commithash" 0 > "maps/$M.ircss"
                ss2spam "$M" "$url?d" "$REFNAME" "$commithash" 0 > "maps/$M.ircss"