fi
t0=`date +%s`
(
- cd maps
- sz=`grep '^size ' "$M.mapinfo" 2>/dev/null || true`
- if [ -n "$sz" ]; then
- minimap_override="-minimap + -minmax ${sz#size }"
- else
- minimap_override=
- fi
- ../../../misc/tools/xonotic-map-compiler "$M" `grep ^- "$M.map.options" | cut -d '#' -f 1` $minimap_override $build_override > "$M.log" 2>&1
+ cd ../..
+ misc/tools/xonotic-map-compiler-optionsfile "data/xonotic-maps/maps/$M" $build_override > "data/xonotic-maps/maps/$M.log" 2>&1
)
status=$?
if ! [ -f "maps/$M.bsp" ]; then
- echo >>"$M.log" "ERROR: No BSP file"
+ echo >>"maps/$M.log" "ERROR: No BSP file"
fi
t1=`date +%s`
dt=$(($t1 - $t0))
if [ -n "$IRCSPAM" ]; then
$IRCSPAM < "maps/$M.irc" || true
fi
+ if [ -n "$BUILD_ONE" ]; then
+ exit
+ fi
}
screenshotthemap()
if [ -n "$IRCSPAM" ]; then
$IRCSPAM < "$M-$blobhash/$M.ircss" || true
fi
+ if [ -n "$BUILD_ONE" ]; then
+ exit
+ fi
}
getthemap()