From: "Marc A. Criley" <mcNOSPAM@mckae.com>
Subject: Re: Detecting version of installed GNAT
Date: Mon, 14 Nov 2005 07:28:27 -0600
Date: 2005-11-14T07:28:27-06:00 [thread overview]
Message-ID: <abbac$43789100$4995734$27659@ALLTEL.NET> (raw)
In-Reply-To: <4375F9CF.2000709@obry.net>
Pascal Obry wrote:
> Marc,
>
> All gnat tools have a -v option. The version number is displayed just
> after the tool name. Isn't that what you are looking for ?
Doh!
gnatmake -v DOES show the version in the first output line. It just
then immediately follows it with all the Usage information. And typing
gnatmake alone shows all the Usage information.
As I simply saw all the Usage information scroll by when trying gnatmake
-v, I didn't look it at closely enough, until after seeing Pascal's
comment, to notice that the first non-blank line is in fact different.
It's "GNATMAKE" followed by the version number, which is sufficent for
my needs.
(Since I need to programatically invoke gnatmake, using that to as the
source of the version is the most appropriate.)
-- Marc A. Criley
-- McKae Technologies
-- www.mckae.com
-- DTraq - XPath In Ada - XML EZ Out
prev parent reply other threads:[~2005-11-14 13:28 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-11-12 13:21 Detecting version of installed GNAT Marc A. Criley
2005-11-12 13:59 ` Jeff Creem
2005-11-12 14:18 ` Ed Falis
2005-11-12 20:24 ` Simon Wright
2005-11-14 8:39 ` Alex R. Mosteo
2005-11-12 14:18 ` Pascal Obry
2005-11-12 17:42 ` Björn Persson
2005-11-14 13:28 ` Marc A. Criley [this message]
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox