Examples of gnatname Usage (GNAT User’s Guide for Native Platforms)

#### 3.3.4.4 Examples of `gnatname` Usage ¶

    $ gnatname -c /home/me/names.adc -d sources "[a-z]*.ada*"

In this example, the directory `/home/me` must already exist and be writable. In addition, the directory `/home/me/sources` (specified by `-d sources`) must exist and be readable.

Note the optional spaces after `-c` and `-d`.

    $ gnatname -P/home/me/proj -x "*_nt_body.ada"
    -dsources -dsources/plus -Dcommon_dirs.txt "body_*" "spec_*"

Note that you may use several `-d` switches, even in conjunction with one or several `-D` switches. This example illustrates multiple Naming Patterns and one excluded pattern.