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,67d995bf9f62ea45 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!feeder.news-service.com!npeer.de.kpn-eurorings.net!npeer-ng0.de.kpn-eurorings.net!newsfeed.arcor.de!newsspool4.arcor-online.net!news.arcor.de.POSTED!not-for-mail Date: Tue, 13 Jul 2010 20:00:28 +0200 From: Georg Bauhaus User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.2.4) Gecko/20100608 Thunderbird/3.1 MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: matrix package with Ada References: <23f0d8f1-e7bd-4af9-a0ee-cea85cbff4bd@x21g2000yqa.googlegroups.com> <8f4ba975-5441-4b42-89ad-b53373a59eb9@g19g2000yqc.googlegroups.com> <53250ca8-da19-47a9-a9b1-3cd1653fb05f@y4g2000yqy.googlegroups.com> <3dd1b818-4ab0-495f-97c5-8f59035d71a4@d37g2000yqm.googlegroups.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Message-ID: <4c3ca9bd$0$6879$9b4e6d93@newsspool2.arcor-online.net> Organization: Arcor NNTP-Posting-Date: 13 Jul 2010 20:00:29 CEST NNTP-Posting-Host: eff3614a.newsspool2.arcor-online.net X-Trace: DXC=EE]CJGnIf]D[6=1B@oB@@@A9EHlD;3YcB4Fo<]lROoRA8kFJLh>_cHTX3jMLYG51;];k]I X-Complaints-To: usenet-abuse@arcor.de Xref: g2news1.google.com comp.lang.ada:12393 Date: 2010-07-13T20:00:29+02:00 List-Id: On 13.07.10 19:43, Ada novice wrote: > Yes, I don't understand why it hangs. I've tried also the package from > 83 but there the files are named "ada" which I've converted to "adb" > but then it becomes a big mess to know which should be "adb" and which > ones should be "ads" given the large amount of files in the library. I > didn't know that Ada files had the extension "ada" in the past. Ada source files can end in "ada", today, or in just anything. You can use GNAT's gnatname and gnatchop to convert Ada source files to Ada source files that have one compilation unit per file, ending in "ads" for specs and in "adb" for bodies. This is how GNAT/GCC wants them. Alternatively, you can write a ton of pragmas telling GNAT where to find a unit, or add this info to a project file IIRC. The "GNAT [GPL] User's Guide" has some background information. "10 Handling Arbitrary File Naming Conventions Using `gnatname' ************************************************************** "10.1 Arbitrary File Naming Conventions ====================================== "The GNAT compiler must be able to know the source file name of a compilation unit. When using the standard GNAT default file naming conventions (`.ads' for specs, `.adb' for bodies), the GNAT compiler does not need additional information. "..." Something like this should work: mkdir for-gnat cd for-gnat for file in loop gnatchop [-r] -w file end loop