[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | Basile STARYNKEVITCH <basile@s...> |
| Subject: | Re: [Caml-list] print the version number |
Angela Zhu wrote:
>
> I found the following code in some OCaml file:
>
> fprintf ppf " Objective Caml version %s@.@." Config.version;
Perhaps from the interactive toplevel?
>
> But I didn't find any file "Config.*" in the directory.
> If I am using SVN to generate version number,
> and I have SVN keyword "$Version$" set somewhere.
> How can I get the the string and use it in a printf function?
Maybe thru Sys.ocaml_version
But I am not sure to understand what version string do you want? The
Ocaml version string, or a version string identifying your software?
--
Basile STARYNKEVITCH http://starynkevitch.net/Basile/
email: basile<at>starynkevitch<dot>net mobile: +33 6 8501 2359
8, rue de la Faiencerie, 92340 Bourg La Reine, France
*** opinions {are only mines, sont seulement les miennes} ***