Skip to content

Commit

Permalink
MacOS / BSD compatibility: sed -i problem
Browse files Browse the repository at this point in the history
  • Loading branch information
lukstafi committed Apr 25, 2023
1 parent fae4f32 commit 057e499
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/dune
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
Expand All @@ -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)
Expand Down

0 comments on commit 057e499

Please sign in to comment.