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,fef3ad775ef4b0b7 X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!news2.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!newsfeed.freenet.de!news2.euro.net!amsnews11.chello.com!uio.no!fi.sn.net!newsfeed1.fi.sn.net!news.song.fi!not-for-mail Date: Thu, 16 Oct 2008 14:17:21 +0300 From: Niklas Holsti User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20060628 Debian/1.7.8-1sarge7.1 X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Ada for 1st year students References: <60e0c5f0-1e17-4add-b21e-b1ef622d5233@v13g2000pro.googlegroups.com> <01b1f1e3-02eb-4a2a-88a3-5650f114a227@v39g2000pro.googlegroups.com> <48EE710D.7080109@obry.net> <417af75d-56a0-44f3-b214-35c6603235e6@r38g2000prr.googlegroups.com> <014b15d2-fe7c-4eeb-9366-7c92ef07efe2@f40g2000pri.googlegroups.com> <74dc9192-deff-43fd-a5ef-fa9abd92e1e2@25g2000prz.googlegroups.com> <2fad3f37-3b68-48cf-97aa-21c843815431@i18g2000prf.googlegroups.com> <48f629ad$0$6577$9b4e6d93@newsspool4.arcor-online.net> <956de137-8a05-405d-ad1d-28540ca2fe58@q26g2000prq.googlegroups.com> <3b7e4d13-85fd-4f5c-a619-32f521e102cf@m73g2000hsh.googlegroups.com> In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Message-ID: <48f722b7$0$23589$4f793bc4@news.tdc.fi> Organization: TDC Internet Services NNTP-Posting-Host: laku61.adsl.netsonic.fi X-Trace: 1224155832 news.tdc.fi 23589 81.17.205.61:32871 X-Complaints-To: abuse@tdcnet.fi Xref: g2news1.google.com comp.lang.ada:2415 Date: 2008-10-16T14:17:21+03:00 List-Id: christoph.grein@eurocopter.com wrote: > We have source distributed in about 20 main directories, so-called > subsystems. Each of these is organized in a hierarchy of deeply nested > subdirectories. Path names get awfully long. All in all, there are > several 1000 Ada units. > > I really did not feel like trying to write the set of -aI switches. > ... > > I could use environment variables, but I can't put them under > configuration control as I can do with project files. And they are not > so easily maintainable. I use shell-scripts that define the environment variables (ADA_INCLUDE_PATH), then do "gnatmake" without -I options. There are different scripts for different versions and configurations of the Ada programs. These script files are under configuration control. I don't have as many directories and subdirectories as Christoph, so I don't (yet) need to write recursive directory traversal algorithms in these scripts, but it would be possible to do so and get the equivalent of the project-file construct "take all units in directory x and its subdirectories". -- Niklas Holsti Tidorum Ltd niklas holsti tidorum fi . @ .