carta
mkid(1)

mkid1

Build an identifier database

Usage

mkid [OPTION] ... [FILE] ...

Overview

Build an identifier database.

-o, --output=OUTFILE

file name of ID database output

-f, --file=OUTFILE

synonym for --output

-i, --include=LANGS

include languages in LANGS (default: "C C++ asm")

-x, --exclude=LANGS

exclude languages in LANGS

-l, --lang-option=L:OPT pass OPT as a default for language L (see below)

-m, --lang-map=MAPFILE

use MAPFILE to map file names onto source language

-d, --default-lang=LANG

make LANG the default source language

-p, --prune=NAMES

exclude the named files and/or directories

-v, --verbose

report per file statistics

-s, --statistics

report statistics at end of run

--files0-from=F

tokenize only the files specified by NUL-terminated names in file F

--help

display this help and exit

--version

output version information and exit

FILE may be a file name, or a directory name to recursively search. If no FILE is given, the current directory is searched by default. Note that the `--include' and `--exclude' options are mutually-exclusive.

The following arguments apply to the language-specific scanners:

C language:

-k,--keep=CHARS

Allow CHARS in single-token strings, keep the result

-i,--ignore=CHARS

Allow CHARS in single-token strings, toss the result

-u,--strip-underscore

Strip a leading underscore from single-token strings

C++ language:

-k,--keep=CHARS

Allow CHARS in single-token strings, keep the result

-i,--ignore=CHARS

Allow CHARS in single-token strings, toss the result

-u,--strip-underscore

Strip a leading underscore from single-token strings

Java language:

-k,--keep=CHARS

Allow CHARS in single-token strings, keep the result

-i,--ignore=CHARS

Allow CHARS in single-token strings, toss the result

-u,--strip-underscore

Strip a leading underscore from single-token strings

Assembly language:

-c,--comment=CHARS

Any of CHARS starts a comment until end-of-line

-k,--keep=CHARS

Allow CHARS in tokens, and keep the result

-i,--ignore=CHARS

Allow CHARS in tokens, and toss the result

-u,--strip-underscore

Strip a leading underscore from tokens

-n,--no-cpp

Don't handle C pre-processor directives

Text language:

-i,--include=CHAR-CLASS

Treat characters of CHAR-CLASS as token constituents

-x,--exclude=CHAR-CLASS

Treat characters of CHAR-CLASS as token delimiters

Perl language:

-i,--include=CHAR-CLASS

Treat characters of CHAR-CLASS as token constituents

-x,--exclude=CHAR-CLASS

Treat characters of CHAR-CLASS as token delimiters

-d,--dtags

Include documentation tags

Lisp language:

History

  • Debian 12 (Bookworm) to Debian 11 (Bullseye): the text shown here
  • Debian 9 (Stretch)
  • Debian 8 (Jessie)
  • Debian 7 (Wheezy)
  • Debian 6.0 (Squeeze) to Debian 5.0 (Lenny)
  • Debian 4.0 (Etch)
  • Debian 3.0 (Woody)
  • Debian 2.2 (Potato)

--default-lang since Debian 7 (Wheezy); --dtags since Debian 5.0 (Lenny); --files0-from since Debian 7 (Wheezy); --lang-map since Debian 4.0 (Etch); --prune since Debian 4.0 (Etch); --statistics since Debian 4.0 (Etch); --verbose since Debian 4.0 (Etch); -d since Debian 5.0 (Lenny); -m since Debian 4.0 (Etch); -p since Debian 4.0 (Etch); -s since Debian 4.0 (Etch); -v since Debian 4.0 (Etch).

Reporting bugs

Report bugs to [email protected]

From id-utils 4.6.28-20200521ss15dab+b1 in Debian 12 (Bookworm). Parsed by carta from the page's man source.