From: Rudolf Polzer Date: Sat, 19 Jun 2010 11:49:40 +0000 (+0200) Subject: also do a pre-compile irc notification for map compiles X-Git-Tag: xonotic-v0.1.0preview~411 X-Git-Url: http://git.xonotic.org/?p=xonotic%2Fxonotic.git;a=commitdiff_plain;h=ec5e922a7b018de237d51b0dae9c96af8c40b592;hp=ae36557cf40bbe21d9707caeeceee5a1ba052fc3 also do a pre-compile irc notification for map compiles --- diff --git a/misc/tools/xonotic-map-compiler-autobuild b/misc/tools/xonotic-map-compiler-autobuild index f33fb9de..3f411004 100755 --- a/misc/tools/xonotic-map-compiler-autobuild +++ b/misc/tools/xonotic-map-compiler-autobuild @@ -23,6 +23,21 @@ allmaps() done } +pre2spam() +{ + map=$1 + url=$2 + branch=$3 + hash=$4 + + branch=${branch##refs/heads/} + branch=${branch##refs/remotes/} + branch=${branch##origin/} + hash=`echo "$hash" | cut -c 1-7` + + echo "[$branch $hash] starting map compile of $map" +} + log2spam() { map=$1 @@ -68,7 +83,7 @@ log2spam() s_failshaders=`echo "$s_failshaders" | sed "s, textures/, ,g"` s_failshaders=${s_failshaders# } if [ -n "$s_error" ]; then - echo -n "[$branch] 4failed" + echo -n "[$branch $hash] 4failed" else echo -n "[$branch] finished" fi @@ -103,6 +118,9 @@ buildthemap() if [ -f "$bspdir/$M-$blobhash.pk3" ]; then continue fi + if [ -n "$IRCSPAM" ]; then + pre2spam "$M" "$url$M-$blobhash.pk3" "$REFNAME" "$HASH" | $IRCSPAM + fi ( cd maps ../../../misc/tools/xonotic-map-compiler "$M" `head -n 1 "$M.map.options"` 2>&1 | tee "$M.log"