+
+ # It's sad that we must enforce this rule by code.
+ if grep -- '-nosRGB' "maps/$M.map.options" >/dev/null; then
+ is_nosrgb=true
+ else
+ is_nosrgb=false
+ fi
+ allow_build=true
+ if $is_nosrgb; then
+ case "$REFNAME" in
+ master|refs/heads/master|origin/master|refs/remotes/origin/master)
+ if [ -n "$IRCSPAM" ]; then
+ echo "\ 34ERROR: map $M uses -nosRGB. This is not acceptable in master. Please fix." | $IRCSPAM || true
+ fi
+ allow_build=false
+ ;;
+ *)
+ if [ -n "$IRCSPAM" ]; then
+ echo "\ 34WARNING:\ f map $M uses -nosRGB. This is not acceptable in master. Please fix." | $IRCSPAM || true
+ fi
+ ;;
+ esac
+ fi
+