Previous: Switches for gnatname, Up: Handling Arbitrary File Naming Conventions with gnatname [Contents][Index]
$ 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 several switches `-d' may be used, even in conjunction with one or several switches `-D'. Several Naming Patterns and one excluded pattern are used in this example.