Skip to content

Commit

Permalink
Construct pipe-stdout got broken at some point
Browse files Browse the repository at this point in the history
  • Loading branch information
mbarbin committed Dec 28, 2024
1 parent 248d765 commit 5031dbf
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 10 deletions.
19 changes: 9 additions & 10 deletions project/visa/circuit/dune
Original file line number Diff line number Diff line change
Expand Up @@ -110,24 +110,23 @@
(deps
calendar.bin
initial-memory.txt
(package bopkit))
(package bopkit)
%{bin:bopkit}
visa.bop)
(action
(pipe-stdout
(run %{bin:bopkit} simu %{dep:visa.bop} --output-only-on-change)
(run %{bin:bopkit} digital-calendar map-raw-input)
(run %{bin:bopkit} digital-calendar display --no-output))))
(run %{dep:visa-simulation-soft-mapping.sh})))

(rule
(alias visa-simulation)
(deps
calendar.bin
initial-memory.txt
(package bopkit))
(package bopkit)
%{bin:bopkit}
visa.bop
calendar-output.bop)
(action
(pipe-stdout
(run %{bin:bopkit} simu %{dep:visa.bop} --output-only-on-change)
(run %{bin:bopkit} simu %{dep:calendar-output.bop} -p)
(run %{bin:bopkit} digital-calendar display --no-output))))
(run %{dep:visa-simulation.sh})))

(rule
(target div10.txt)
Expand Down
5 changes: 5 additions & 0 deletions project/visa/circuit/visa-simulation-soft-mapping.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash -e

bopkit simu visa.bop --output-only-on-change | \
bopkit digital-calendar map-raw-input | \
bopkit digital-calendar display --no-output
5 changes: 5 additions & 0 deletions project/visa/circuit/visa-simulation.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash -e

bopkit simu visa.bop --output-only-on-change | \
bopkit simu calendar-output.bop -p | \
bopkit digital-calendar display --no-output

0 comments on commit 5031dbf

Please sign in to comment.