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 autolearn=disabled version=3.1.3 Received: from mail1-relais-roc.national.inria.fr (mail1-relais-roc.national.inria.fr [192.134.164.82]) by yquem.inria.fr (Postfix) with ESMTP id C53DCBD0F for ; Fri, 2 Nov 2007 14:44:05 +0100 (CET) X-IronPort-AV: E=Sophos;i="4.21,362,1188770400"; d="scan'208";a="3953447" Received: from smtpoutm.mac.com ([17.148.16.72]) by mail1-smtp-roc.national.inria.fr with ESMTP; 02 Nov 2007 14:22:36 +0100 Received: from mac.com (asmtp003-s [10.150.69.66]) by smtpoutm.mac.com (Xserve/smtpout009/MantshX 4.0) with ESMTP id lA2DMLOj008773 for ; Fri, 2 Nov 2007 06:22:21 -0700 (PDT) Received: from [192.168.8.101] (c-24-218-151-219.hsd1.ma.comcast.net [24.218.151.219]) (authenticated bits=0) by mac.com (Xserve/asmtp003/MantshX 4.0) with ESMTP id lA2DMJMg009782 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO) for ; Fri, 2 Nov 2007 06:22:20 -0700 (PDT) Message-Id: <8627F8E5-EB55-4373-96AA-8F6F1BF571F7@mac.com> From: Gordon Henriksen To: caml-list@yquem.inria.fr In-Reply-To: Content-Type: text/plain; charset=WINDOWS-1252; format=flowed; delsp=yes Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Apple Message framework v912) Subject: Re: [Caml-list] print the version number Date: Fri, 2 Nov 2007 09:22:19 -0400 References: X-Mailer: Apple Mail (2.912) X-Spam: no; 0.00; ocaml:01 fprintf:01 ppf:01 printf:01 makefile:01 utils:01 utils:01 mlp:01 2007,:98 angela:98 config:01 config:01 wrote:01 caml-list:01 caml:02 On Nov 1, 2007, at 22:32, Angela Zhu wrote: > I found the following code in some OCaml file: > > fprintf ppf " Objective Caml version %s@.@." =20 > Config.version; > > 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 =20= > "$Version$" set somewhere. > How can I get the the string and use it in a printf function? See lines 320-345 of the Makefile (the rule is utils/config.ml: utils/=20= config.mlp). =97 Gordon