Next: check-db, Previous: rmcat, Up: Admin utils [Contents][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 Index file description). The results are printed to
standard output. The options are:
-n--numericSorts index entries numerically.
-d databasename--database=databasenameSpecifies 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--outfile=filenamePlaces output in filename rather than sending it to standard output.
-i--importImport the existing index file instead of re-indexing the database.
-e--exportForce plaintext output.
-h--helpPrints the usage for gen-index.
-V--versionPrints the version number for gen-index.