Replace version markers.

This commit is contained in:
Jerry James 2020-01-18 16:44:53 -07:00
parent 9cf2e7fd09
commit 9b31be634b
1 changed files with 7 additions and 0 deletions

View File

@ -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