From da5f2452a73f8af61092e613773766926e7e568b Mon Sep 17 00:00:00 2001 From: Martin Bruse Date: Wed, 22 May 2024 10:28:40 +0200 Subject: [PATCH] Added an f2 variant metric. --- install_external_metrics.sh | 82 +++++++++++++++++++++++++++++++++++++ 1 file changed, 82 insertions(+) diff --git a/install_external_metrics.sh b/install_external_metrics.sh index 3e05292..5ac52cb 100755 --- a/install_external_metrics.sh +++ b/install_external_metrics.sh @@ -338,6 +338,88 @@ func main() { fmt.Printf("SCORE=%f\n", odgSum / float64(count)) } } +EOF + + ( cd "${DST}" && go build "${WRAPPER}.go" ) > "${INSTALL_LOG}" 2>&1 + if test "${?}" != "0"; then + cat "${INSTALL_LOG}" + exit 3 + fi + + local WRAPPER="${DST}/serve_f2" + echo "Dropping f2 wrapper ${WRAPPER}..." + cat > "${WRAPPER}.go" < "${INSTALL_LOG}" 2>&1