home *** CD-ROM | disk | FTP | other *** search
/ Magazyn Exec 5 / CD_Magazyn_EXEC_nr_5.iso / Programy / Programowanie / FetchRefs2.1.lha / FetchRefs2.1 / GenIndex.sh < prev    next >
Encoding:
Text File  |  1996-02-25  |  1.5 KB  |  36 lines

  1. # This is an example of a Shell script (for Csh) that can be used to generate
  2. # index files automatically so I do not have to select each time which files
  3. # I want scanned with what options.
  4. #
  5. # Furthermore this script demonstrates how an index generation can be split
  6. # up in several (in this case two) files. The supplied ARexx scripts, however, 
  7. # do not take notice of this (I use another script) and are designed for just
  8. # one index file. Figure it out yourself!
  9. #
  10. # I run this script everytime something has changed in my manuals or include
  11. # files drawers. Note that the calls take advantage of the recursivity feature
  12. # of GenerateIndex. Also note that it first deletes the existing index files.
  13. # GenerateIndex will add to them if they are not deleted.
  14. #
  15. # This script is quite specific to the organization of my harddisk, so you
  16. # cannot use it for anything real; it merely serves as an example.
  17. #
  18. # Anders Melchiorsen, 19-Feb-96
  19.  
  20. # First make an index file with AutoDoc, struct and file name entries
  21. echo "Indexing AutoDocs, struct's and file names..."
  22. delete S:FetchRefs.index
  23.  
  24. GenerateIndex/GenerateIndex TO S:FetchRefs.index RECURSIVELY KEEPEMPTY\
  25.   AUTODOC C C_STRUCT\
  26.   FROM "DCC:Docs" "DINCLUDE:*.h" "DINCLUDE:Amiga30" "DINCLUDE:pd"
  27.  
  28. # Now make another index file, this one with all defines and typedef's
  29. echo "Indexing #define's and typedef's..."
  30. delete S:FetchRefs.index.defines
  31.  
  32. GenerateIndex/GenerateIndex TO S:FetchRefs.index.defines RECURSIVELY\
  33.  C C_DEFINE C_TYPEDEF\
  34.  FROM "DINCLUDE:*.h" "DINCLUDE:Amiga30" "DINCLUDE:pd"
  35.  
  36.