From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=AWL,SPF_PASS autolearn=disabled version=3.1.3 Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by yquem.inria.fr (Postfix) with ESMTP id 06BD2BC6B for ; Fri, 2 Nov 2007 17:10:18 +0100 (CET) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgAAAC7pKkc+BBFphWdsb2JhbACBW40PAgEIBAYPEwc X-IronPort-AV: E=Sophos;i="4.21,363,1188770400"; d="scan'208";a="3831934" Received: from smtp-105-friday.noc.nerim.net (HELO mallaury.nerim.net) ([62.4.17.105]) by mail2-smtp-roc.national.inria.fr with ESMTP; 02 Nov 2007 17:10:17 +0100 Received: from hector.lesours (ours.starynkevitch.net [213.41.244.95]) by mallaury.nerim.net (Postfix) with ESMTP id 453CD4F3CF; Fri, 2 Nov 2007 17:10:07 +0100 (CET) Received: from [192.168.0.1] (glinka.lesours [192.168.0.1]) by hector.lesours (Postfix) with ESMTP id 6F65520F1E4; Fri, 2 Nov 2007 17:07:19 +0100 (CET) Message-ID: <472B4BDE.1030006@starynkevitch.net> Date: Fri, 02 Nov 2007 17:10:06 +0100 From: Basile STARYNKEVITCH User-Agent: Mozilla-Thunderbird 2.0.0.6 (X11/20071008) MIME-Version: 1.0 To: Angela Zhu Cc: caml-list@yquem.inria.fr Subject: Re: [Caml-list] print the version number References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam: no; 0.00; basile:01 basile:01 ocaml:01 fprintf:01 ppf:01 toplevel:01 printf:01 ocaml:01 faiencerie:01 92340:01 reine:01 angela:98 config:01 config:01 wrote:01 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: basilestarynkevitchnet mobile: +33 6 8501 2359 8, rue de la Faiencerie, 92340 Bourg La Reine, France *** opinions {are only mines, sont seulement les miennes} ***