1
0
This commit is contained in:
GenZmeY 2022-03-25 11:14:48 +03:00
parent b250635f88
commit 06642bf7e3

16
builder
View File

@ -554,6 +554,11 @@ function compiled ()
done
}
function find_log ()
{
find "$KFLogs" -printf '%T+ %p\n' | sort -r | head -n1 | cut -f2- -d" "
}
function compile ()
{
local StripSourceArg=""
@ -602,8 +607,7 @@ function compile ()
if is_true "$ArgHoldEditor"; then
CMD //C "$(cygpath -w "$KFEditor") make $StripSourceArg -useunpublished"
Logfile="$(find "$KFLogs" -printf '%T+ %p\n' | sort -r | head -n1 | cut -f2- -d" ")"
parse_log "$Logfile"
parse_log "$(find_log)"
if ! compiled; then
die "compilation failed"
fi
@ -614,7 +618,7 @@ function compile ()
while ps -p "$PID" &> /dev/null
do
sleep 1
Logfile="$(find "$KFLogs" -printf '%T+ %p\n' | sort -r | head -n1 | cut -f2- -d" ")"
Logfile="$(find_log)"
if compiled; then
msg "${GRN}successfully compiled${DEF}"
@ -819,11 +823,11 @@ function run_test ()
read_settings
if ! brewed; then
if brewed; then
msg "run test (brewed)"
else
UseUnpublished="-useunpublished"
msg "run test (unpublished)"
else
msg "run test (brewed)"
fi
CMD //C "$(cygpath -w "$KFGame") $Map?Difficulty=$Difficulty?GameLength=$GameLength?Game=$Game?Mutator=$Mutators?$Args $UseUnpublished" -log