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