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=1.4 required=5.0 tests=HTML_MESSAGE,SPF_NEUTRAL autolearn=disabled version=3.1.3 Received: from mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by yquem.inria.fr (Postfix) with ESMTP id 71C7CBD66 for ; Fri, 2 Nov 2007 14:03:55 +0100 (CET) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgAAAIYoKkdA6aa2i2dsb2JhbACCPTaLdQIBCAQEExEF X-IronPort-AV: E=Sophos;i="4.21,361,1188770400"; d="scan'208";a="18850649" Received: from py-out-1112.google.com ([64.233.166.182]) by mail4-smtp-sop.national.inria.fr with ESMTP; 02 Nov 2007 03:32:19 +0100 Received: by py-out-1112.google.com with SMTP id u52so1273735pyb for ; Thu, 01 Nov 2007 19:32:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type; bh=NFpJIONtZkQkYv4an3JEhB4z9OtgQKdW/g/QDeRMXaU=; b=GxKqb+yoAraeg1/Z4zT12gI1HYgzsOHzYoLWn4esykPe/DtVeEC+wJex0RlMp70LM93RUtWKeaH7XBe4j8y8YjU1XOUyI2W5yVCVGnvXScuNL8gUFHlOmTNuiommIFjIiEnBAshNUfZjRH4goMjb8qkQbo8ScVTk0ri4dyS0mig= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type; b=AotB0kqXhPpgAm8+BaIBOEckR6hiPg+UJkNEVqReogSNlF7OzJHYXNyXf2V6M9VzW9uN+b7ZR9D1X7I5oQ792GZOR8rz+QnQzkR+l5/IGfpkQUndKjYp2DXud3nCVz0h/IYccJ6hvP0tPQVIOLTQ44QffE+5WjeTjxFuyu1D/lU= Received: by 10.35.93.1 with SMTP id v1mr1468599pyl.1193970737767; Thu, 01 Nov 2007 19:32:17 -0700 (PDT) Received: by 10.35.89.3 with HTTP; Thu, 1 Nov 2007 19:32:17 -0700 (PDT) Message-ID: Date: Thu, 1 Nov 2007 21:32:17 -0500 From: "Angela Zhu" To: caml-list@yquem.inria.fr Subject: print the version number MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_17534_11250627.1193970737758" X-Spam: no; 0.00; ocaml:01 fprintf:01 ppf:01 printf:01 ocaml:01 fprintf:01 ppf:01 printf:01 angela:98 angela:98 22.:98 W8:98 config:01 config:01 caml:02 ------=_Part_17534_11250627.1193970737758 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi, I found the following code in some OCaml file: fprintf ppf " Objective Caml version %s@.@." 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 "$Version$" set somewhere. How can I get the the string and use it in a printf function? -- Thanks, Angela Zhu ------------------------------------------ Dept. of CS, Rice University http://www.cs.rice.edu/~yz2/ ------------------------------------------ ------=_Part_17534_11250627.1193970737758 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi,

I found the following code in some OCaml file:

    fprintf ppf "        Objective Caml version %s@.@." 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 "$Version$" set somewhere.
How can I get the the string and use it in a printf function?

--
Thanks,
Angela Zhu
------------------------------------------
Dept. of CS, Rice University
http://www.cs.rice.edu/~yz2/
------------------------------------------ ------=_Part_17534_11250627.1193970737758--