www.delorie.com/gnu/docs/gnats/gnats_75.html   search  
Buy GNU books!

Keeping Track

[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

4.7.4 Regenerating the index

If your `index' file becomes corrupted, or if you need a copy of the current index for some reason, use

gen-index [ -n | --numeric ]
          [ -d databasename | --database=databasename ]
          [ -o filename | --outfile=filename ]
          [ -i | --import ] [ -e | --export ]
          [ -h | --help] [ -V | --version ]

With no options, gen-index generates an index that is sorted by the order that the categories appear in the `categories' file. The index is generated in plaintext or binary format according to the value of binary-index in the `dbconfig' file (see section Index file description). The results are printed to standard output. The options are:

Sorts index entries numerically.

-d databasename
Specifies the database to index. If this option is left out, gen-index attempts to index the database with name taken from the the GNATSDB environment variable, and if that is undefined, the default database, as set when GNATS was built (usually default).

-o filename
Places output in filename rather than sending it to standard output.

Import the existing index file instead of re-indexing the database.

Force plaintext output.

Prints the usage for gen-index.

Prints the version number for gen-index.

  webmaster     delorie software   privacy  
  Copyright 2003   by The Free Software Foundation     Updated Jun 2003