Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: Basile STARYNKEVITCH <basile@starynkevitch.net>
To: Angela Zhu <angela22.zhu@gmail.com>
Cc: caml-list@yquem.inria.fr
Subject: Re: [Caml-list] print the version number
Date: Fri, 02 Nov 2007 17:10:06 +0100	[thread overview]
Message-ID: <472B4BDE.1030006@starynkevitch.net> (raw)
In-Reply-To: <f82e818a0711011932t169a6d73nb0f28f8479ce171f@mail.gmail.com>

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} ***


      parent reply	other threads:[~2007-11-02 16:10 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-02  2:32 Angela Zhu
2007-11-02 13:22 ` [Caml-list] " Gordon Henriksen
2007-11-02 16:10 ` Basile STARYNKEVITCH [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=472B4BDE.1030006@starynkevitch.net \
    --to=basile@starynkevitch.net \
    --cc=angela22.zhu@gmail.com \
    --cc=caml-list@yquem.inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox