1
0
mirror of https://github.com/TREX-CoE/trexio.git synced 2024-10-28 09:48:30 +01:00

Updated OCaml binding

This commit is contained in:
Anthony Scemama 2024-05-27 15:21:52 +02:00
parent 05b943f6ed
commit 097162a624

View File

@ -8,10 +8,10 @@ ml_file = "trexio.ml"
mli_file = ml_file+"i"
def check_version():
with open('trexio.opam','r') as f:
with open('dune-project','r') as f:
for line in f:
if line.startswith("version"):
ocaml_version = line.split(':')[1].strip()[1:-1]
if line.startswith("(version"):
ocaml_version = line.split()[1].strip().replace(')','')
break
with open('../../configure.ac','r') as f:
for line in f: