From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,4f4c469cec8ba9e8 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!news.glorb.com!atl-c08.usenetserver.com!news.usenetserver.com!pc03.usenetserver.com!ALLTEL.NET-a2kHrUvQQWlmc!not-for-mail Date: Mon, 14 Nov 2005 07:28:27 -0600 From: "Marc A. Criley" User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Detecting version of installed GNAT References: <4375F9CF.2000709@obry.net> In-Reply-To: <4375F9CF.2000709@obry.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: X-Complaints-To: abuse@usenetserver.com Organization: UseNetServer.com X-Trace: abbac43789100a13cf29127659 Xref: g2news1.google.com comp.lang.ada:6375 Date: 2005-11-14T07:28:27-06:00 List-Id: 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