%N grgfil %F $MIR/src/grgfil.f
%D Find data file
%B
      SUBROUTINE GRGFIL(TYPE, NAME)
      CHARACTER*(*) TYPE, NAME

 This routine encsapsulates the algorithm for finding the PGPLOT
 run-time data files.

 1. The binary font file: try the following in order:
     file specified by PGPLOT_FONT
     file "grfont.dat" in directory specified by PGPLOT_DIR
                       (with or without '/' appended)
     file "grfont.dat" in directory /usr/local/pgplot/

 2. The color-name database: try the following in order:
     file specified by PGPLOT_RGB
     file "rgb.txt" in directory specified by PGPLOT_DIR
                       (with or without '/' appended)
     file "rgb.txt" in directory /usr/local/pgplot/

 Arguments:
  TYPE (input)  : either 'FONT' or 'RGB' to request the corresponding
                  file.
  NAME (output) : receives the file name.
