comp.lang.ada
 help / color / mirror / Atom feed
From: prichtmyer@yahoo.com (Peter Richtmyer)
Subject: Re: The Dreaded "Missing Subunits"
Date: 19 Sep 2002 07:44:13 -0700
Date: 2002-09-19T14:44:13+00:00	[thread overview]
Message-ID: <1b585154.0209190644.648d0643@posting.google.com> (raw)
In-Reply-To: wccn0qf9evb.fsf@shell01.TheWorld.com

Robert A Duff <bobduff@shell01.TheWorld.com> wrote in message news:<wccn0qf9evb.fsf@shell01.TheWorld.com>...

> The form of pragma Source_File_Name that lists all the compilation units
> and their file names is useless, in my opinion, unless there's an
> automatic way to generate them (as you say below).
> 

Some years ago I wrote a perl script to do just that. Seems to me it
is now obsolete since we can use wildcards in the pragma. But here's
the "help" from the utility (abbreviated a bit - took out some
project-specific info).
I can forward the script to anyone who wants it. 

    ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

                     make_gnat_adc.pl                               

       make_gnat_adc.pl  [-v] [-e] [-a]  [I/path/dir]...  
    or
       make_gnat_adc.pl  [-h]

    This utility will create a 'gnat.adc' file in the current
directory.
    The file will contain 'Source_File_Name' pragmas for all
Apex-formatted
    Ada files in the specified 'paths'. These pragmas are for use by
the Gnat
    Ada compiler, so that it can convert each Ada program 'unit' name
into an
    Apex Ada File name. Once the compiler knows the file name, it can
    search for the correct file to compile.            

    The 'gnat.adc' file must be in the directory from which the
compile
    is run. And this one gnat.adc file must contain pragmas for all
for
    all Ada source files needed that are not in the standard Gnat
format.

    The 'paths' may come from any or all of these sources:           
        1) Environment variable ADA_INCLUDE_PATH. This is a standard
           Gnat variable that can contain multiple directories,
separated
           by '$SEPARATOR'. Gnat uses this path when searching for Ada
program
           units.                          
        2) 'path' string(s) on the command line. They are entered
after
           the -I option. Similar to the "-I" option for gnatmake, but
it
           can contain one or directories, separated by '$SEPARATOR'.
      
     Each option string must start with a '-'. Options are:
        'v'  or 'V' - Verbose mode - Print debugging-level details.
                      Default is no details.             
        'e'  or 'E' - Use the Environment variable ADA_INCLUDE_PATH. 
                      The default is to not use it.     
        'a' or 'A'  - Use the directory that is the same name as the
current
                      directory except that it does not have "/proj"
at the
                      beginning.
        'h'  or 'H' - Help. Print this Help and halt. Default is no
Help.
        'Ipath/dir' - A directory to be searched for Ada files. Or
more than
                      one directory, separated by the '$SEPARATOR'.
the
                      Separator character is dependant upon the
operating
                      system, where:
                             Windows -> ';'
                             Unix    -> ':'
   
     The options may be separate (e.g.: "-v -e -I/temp -I/temp2"), or
may be combined
     (e.g.:  "-veI/temp -I/temp2").                        

     The pragma format is:
         Source_File_Name (Unit_Name =>      unit-name,
                           Spec_File_Name => "spec-file-name");
     or
         Source_File_Name (Unit_Name =>      unit-name,
                           Body_File_Name => "body-file-name");
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Peter



  parent reply	other threads:[~2002-09-19 14:44 UTC|newest]

Thread overview: 46+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-09-12 22:49 The Dreaded "Missing Subunits" Peter Richtmyer
2002-09-13  8:16 ` Peter Amey
2002-09-13  8:51   ` Ada2005 temp solo child (was: " Peter Hermann
2002-09-14  2:33     ` Robert A Duff
2002-09-13  9:24   ` Emmanuel Briot
2002-09-13 20:46     ` Simon Wright
2002-09-14  0:25     ` Chad R. Meiners
2002-09-14  2:53     ` Robert A Duff
2002-09-14 20:20       ` Simon Wright
2002-09-16 13:48         ` Ted Dennison
2002-09-16 16:33           ` Keith Thompson
2002-09-17  2:42             ` Ted Dennison
2002-09-18 20:56           ` Robert A Duff
2002-09-19  8:26             ` Emmanuel Briot
2002-09-19  9:55             ` Preben Randhol
2002-09-19 10:53             ` Marc A. Criley
2002-09-19 11:26             ` Marin David Condic
2002-09-19 21:49             ` Dmitry A.Kazakov
2002-09-19  9:47               ` Preben Randhol
2002-09-20  2:42                 ` Dmitry A.Kazakov
2002-09-19 15:33                   ` Stephen Leake
2002-09-19 15:36                   ` Preben Randhol
2002-09-20 22:31                     ` Dmitry A.Kazakov
2002-09-16 15:10       ` Emmanuel Briot
2002-09-18 21:17         ` Robert A Duff
2002-09-18 22:41           ` Stephen Leake
2002-09-19  0:00             ` Robert A Duff
2002-09-19  1:39               ` Keith Thompson
2002-09-19 15:19                 ` Stephen Leake
2002-09-19  4:02               ` Larry Kilgallen
2002-09-19 15:24               ` Stephen Leake
2002-09-19 20:34               ` Randy Brukardt
2002-09-19 14:44           ` Peter Richtmyer [this message]
2002-09-19 20:25           ` Randy Brukardt
2002-09-13 17:15 ` Mark Johnson
2002-09-13 20:56 ` Stephen Leake
2002-09-13 20:58 ` Simon Wright
2002-09-16 17:28   ` Peter Richtmyer
2002-09-19 20:05     ` Brian Gaffney
  -- strict thread matches above, loose matches on Subject: below --
2002-09-19  1:41 Alexandre E. Kopilovitch
2002-09-19 14:25 ` Peter Hermann
2002-09-19 11:37 Grein, Christoph
2002-09-20  6:03 Grein, Christoph
2002-09-20  7:30 ` Preben Randhol
2002-09-20 14:01   ` Robert A Duff
2002-09-20  9:05 Grein, Christoph
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox