Skip to content

Commit

Permalink
refactor(build): use inferred form of with-stdout-to (#2819)
Browse files Browse the repository at this point in the history
* refactor(build): use inferred form of `with-stdout-to`

* revert two
  • Loading branch information
anmonteiro authored Nov 29, 2024
1 parent c3c811a commit c944ef5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
2 changes: 0 additions & 2 deletions src/reason-parser/dune
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
(ocamllex
(modules reason_declarative_lexer))

; Use select.exe from janestreet/ppx_ast to choose ocaml_util.ml based on ocaml version

(rule
(targets ocaml_util.ml)
(deps ocaml_util.cppo.ml)
Expand Down
12 changes: 5 additions & 7 deletions src/refmt/dune
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,11 @@
(libraries reason reason.cmdliner dune-build-info))

(rule
(targets git_commit.ml)
(action
(with-stdout-to
%{targets}
(progn
(bash "echo let version = \\\"$(git rev-parse --verify HEAD)\\\"")
(bash "echo let short_version = \\\"$(git rev-parse --short HEAD)\\\"")))))
(with-stdout-to
git_commit.ml
(progn
(bash "echo let version = \\\"$(git rev-parse --verify HEAD)\\\"")
(bash "echo let short_version = \\\"$(git rev-parse --short HEAD)\\\""))))

(rule
(with-stdout-to
Expand Down

0 comments on commit c944ef5

Please sign in to comment.