Skip to content

Add metadata to setup.ml to allow extract it automatically. #562

@gildor478

Description

@gildor478

This feature request has been migrated from artifact #1715 on forge.ocamlcore.org. It was assigned to user100.

user102 posted on 2016-12-09 09:47:06:

Some metadata like the version of OASIS used to generate setup.ml are only available when running setup.ml.

It would be more useful to have structured data that can be extracted using a simple function from the oasis library:

Example:
setup.ml
(* OASIS_START )
(
DO NOT EDIT (digest: 9cd2631a11ff0b2f83c006d35d7a5709) )
(

Regenerated by OASIS v0.4.7
Visit http://oasis.forge.ocamlcore.org for more information and
documentation about functions used in this file.

OASISVersion: 0.4.7 RegenerationDate: 2016-12-06T10:00:00+02:00 ... *)

OASISSetup.Metadata.OASISVersion t -> 0.4.7

user102 replied on 2016-12-09 12:48:57:

Use in oasis2opam to get version.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions