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
s_failshaders=`echo "$s_failshaders" | sed "s, textures/, ,g"`
s_failshaders=${s_failshaders# }
if [ -n "$s_error" ]; then
- echo -n "[$branch] \ 34failed"
+ echo -n "[$branch $hash] \ 34failed"
else
echo -n "[$branch] finished"
fi
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"