From 057e499a61deff59d52e4c8e335922266bb3d352 Mon Sep 17 00:00:00 2001 From: lukstafi Date: Tue, 25 Apr 2023 11:59:12 +0200 Subject: [PATCH] MacOS / BSD compatibility: `sed -i` problem --- test/dune | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/dune b/test/dune index 19508c1..63a0e8f 100644 --- a/test/dune +++ b/test/dune @@ -55,7 +55,7 @@ (target debugger_sexp_printbox.log) (action (progn (run %{dep:test_debug_sexp.exe}) - (run sed -i "s/[0-9]\\+-[0-9]\\+-[0-9]\\+ [0-9]\\+:[0-9]\\+:[0-9]\\+\\.[0-9]\\+\\( +[0-9]\\+:[0-9]\\+\\)\\?/YYYY-MM-DD HH:MM:SS.NNNNNN/g" %{target})))) + (run sed -i'.bak' "s/[0-9]\\+-[0-9]\\+-[0-9]\\+ [0-9]\\+:[0-9]\\+:[0-9]\\+\\.[0-9]\\+\\( +[0-9]\\+:[0-9]\\+\\)\\?/YYYY-MM-DD HH:MM:SS.NNNNNN/g" %{target})))) (rule (alias runtest) @@ -73,7 +73,7 @@ (target debugger_pp_format.log) (action (progn (run %{dep:test_debug_pp.exe}) - (run sed -i "s/[0-9]\\+-[0-9]\\+-[0-9]\\+ [0-9]\\+:[0-9]\\+:[0-9]\\+\\.[0-9]\\+\\( +[0-9]\\+:[0-9]\\+\\)\\?/YYYY-MM-DD HH:MM:SS.NNNNNN/g" %{target})))) + (run sed -i'.bak' "s/[0-9]\\+-[0-9]\\+-[0-9]\\+ [0-9]\\+:[0-9]\\+:[0-9]\\+\\.[0-9]\\+\\( +[0-9]\\+:[0-9]\\+\\)\\?/YYYY-MM-DD HH:MM:SS.NNNNNN/g" %{target})))) (rule (alias runtest) @@ -91,7 +91,7 @@ (target debugger_show_flushing.log) (action (progn (run %{dep:test_debug_show.exe}) - (run sed -i "s/[0-9]\\+-[0-9]\\+-[0-9]\\+ [0-9]\\+:[0-9]\\+:[0-9]\\+\\.[0-9]\\+\\( +[0-9]\\+:[0-9]\\+\\)\\?/YYYY-MM-DD HH:MM:SS.NNNNNN/g" %{target})))) + (run sed -i'.bak' "s/[0-9]\\+-[0-9]\\+-[0-9]\\+ [0-9]\\+:[0-9]\\+:[0-9]\\+\\.[0-9]\\+\\( +[0-9]\\+:[0-9]\\+\\)\\?/YYYY-MM-DD HH:MM:SS.NNNNNN/g" %{target})))) (rule (alias runtest)