Node: Examples of gnatname Usage, Previous: Switches for gnatname, Up: Handling Arbitrary File Naming Conventions Using gnatname



Examples of gnatname Usage

     $ gnatname
     

equivalent to

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

In this example, the directory /home/me must already exist and be writeable. 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 -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 are used in this example.