Skip to content

Commit

Permalink
push the digest of extra sources in dummy.v
Browse files Browse the repository at this point in the history
  • Loading branch information
gares committed Jun 3, 2024
1 parent 5219462 commit 67d5388
Show file tree
Hide file tree
Showing 7 changed files with 28 additions and 5 deletions.
5 changes: 4 additions & 1 deletion apps/NES/elpi/dune
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@
(glob_files *.elpi))
(action
(with-stdout-to %{target}
(echo ""))))
(progn
(echo "Require Import String.\nOpen Scope string_scope.\nLocal Definition _hash := \"\n")
(run coq_elpi_shafile %{deps})
(echo "\".\n")))))

(install
(files
Expand Down
5 changes: 4 additions & 1 deletion apps/derive/elpi/dune
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@
(glob_files *.elpi))
(action
(with-stdout-to %{target}
(echo ""))))
(progn
(echo "Require Import String.\nOpen Scope string_scope.\nLocal Definition _hash := \"\n")
(run coq_elpi_shafile %{deps})
(echo "\".\n")))))

(install
(files
Expand Down
5 changes: 4 additions & 1 deletion apps/locker/elpi/dune
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@
(glob_files *.elpi))
(action
(with-stdout-to %{target}
(echo ""))))
(progn
(echo "Require Import String.\nOpen Scope string_scope.\nLocal Definition _hash := \"\n")
(run coq_elpi_shafile %{deps})
(echo "\".\n")))))

(install
(files
Expand Down
5 changes: 4 additions & 1 deletion apps/tc/elpi/dune
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@
(glob_files *.elpi))
(action
(with-stdout-to %{target}
(echo ""))))
(progn
(echo "Require Import String.\nOpen Scope string_scope.\nLocal Definition _hash := \"\n")
(run coq_elpi_shafile %{deps})
(echo "\".\n")))))

(install
(files
Expand Down
5 changes: 4 additions & 1 deletion elpi/dune
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@
(glob_files *.elpi))
(action
(with-stdout-to %{target}
(echo ""))))
(progn
(echo "Require Import String.\nOpen Scope string_scope.\nLocal Definition _hash := \"\n")
(run coq_elpi_shafile %{deps})
(echo "\".\n")))))

(install
(files
Expand Down
5 changes: 5 additions & 0 deletions etc/dune
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
(executable
(name shafile)
(public_name coq_elpi_shafile)
(modules shafile)
(package coq-elpi))
3 changes: 3 additions & 0 deletions etc/shafile.ml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
let () =
Sys.argv |> Array.iter (fun file ->
Printf.printf "%s: %s\n" file @@ Digest.to_hex @@ Digest.file file)

0 comments on commit 67d5388

Please sign in to comment.