From 76756fbae24be59fdf3d9074ce36ac8be424296f Mon Sep 17 00:00:00 2001 From: Jeroen Engels Date: Wed, 11 Sep 2024 22:43:37 +0200 Subject: [PATCH] Use a single sed to make replacements in regression script --- find-regressions.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/find-regressions.sh b/find-regressions.sh index 34ee5a99..067c88bf 100755 --- a/find-regressions.sh +++ b/find-regressions.sh @@ -21,14 +21,16 @@ cd find-regressions/current elm make --optimize ../src/ParseMain.elm --output elm.js > /dev/null -sed -i 's/$author$project$ParseMain$timeStart(version)/globalThis.performance.now()/' elm.js -sed -i 's/$author$project$ParseMain$timeEnd(version)/globalThis.measurements[version].push(globalThis.performance.now() - start)/' elm.js +sed -e 's/$author$project$ParseMain$timeStart(version)/globalThis.performance.now()/' \ + -e 's/$author$project$ParseMain$timeEnd(version)/globalThis.measurements[version].push(globalThis.performance.now() - start)/' \ + -i elm.js cd ../.. cd find-regressions/published elm make --optimize ../src/ParseMain.elm --output elm.js > /dev/null -sed -i 's/$author$project$ParseMain$timeStart(version)/globalThis.performance.now()/' elm.js -sed -i 's/$author$project$ParseMain$timeEnd(version)/globalThis.measurements[version].push(globalThis.performance.now() - start)/' elm.js +sed -e 's/$author$project$ParseMain$timeStart(version)/globalThis.performance.now()/' \ + -e 's/$author$project$ParseMain$timeEnd(version)/globalThis.measurements[version].push(globalThis.performance.now() - start)/' \ + -i elm.js cd ../.. node find-regressions $@ \ No newline at end of file