From 9b31be634beb7f55e7686963f37c06a30b14b10b Mon Sep 17 00:00:00 2001 From: Jerry James Date: Sat, 18 Jan 2020 16:44:53 -0700 Subject: [PATCH] Replace version markers. --- ocaml-odoc.spec | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ocaml-odoc.spec b/ocaml-odoc.spec index cd340db..4b70030 100644 --- a/ocaml-odoc.spec +++ b/ocaml-odoc.spec @@ -64,6 +64,13 @@ Documentation for %{name}. # The opam file has not been updated since the great renumbering. sed -i 's/113\.33\.00/0.13.0/' odoc.opam +# Replace version markers +for fil in src/html/tree.ml $(find test -name index.html -o -name mld.html); do + sed -i.orig 's,%%%%VERSION%%%%,%{version},' $fil + touch -r $fil.orig $fil + rm $fil.orig +done + %build dune build %{?_smp_mflags} dune build %{?_smp_mflags} @doc