mkmamedb — create
    database for use by ckmame
| mkmamedb | [ -fhtuV] [-Ctypes] [-Fformat] [-odbfile] [-xpattern] [--all-sets]
      [--detectorxml-file]
      [--directory-cache]
      [--excludepattern]
      [--formatformat]
      [--hash-typestypes]
      [--help]
      [--list-available-dats]
      [--list-dats]
      [--list-sets]
      [--mia-games]
      [--no-directory-cache]
      [--only-filespattern]
      [--outputdbfile]
      [--prog-descriptiondescription] [--prog-namename] [--prog-versionversion] [--roms-unzipped]
      [--setpattern]
      [--skip-filespattern]
      [--use-description-as-name]
      [--use-temp-directory]
      [--version] [[rominfo-file |
      directory | -]
      ...] | 
mkmamedb converts ROM set descriptions
    from one format to another.
If no argument is given, mkmamedb reads
    the ckmamerc(5) config file and
    checks if it needs to update the default database.
When a rominfo-file is specified, it is used
    as input file; if the argument is -,
    mkmamedb expects the database on standard input
    (stdin).
When a directory is specified, the files in that directory are checksummed and written to the database.
The default output file is mame.db. You
    can override it with the -o option or the
    MAMEDB environment variable.
Supported input formats are:
-u); each
      sub-directory is taken as a gameThe CMPro file format is described at http://www.logiqx.com/FAQs/CMPro.shtml, the DTD for MAME xml can be found in PREFIX/share/doc/ckmame/.
mkmamedb supports the following
  options:
--all-sets-C
    types, --hash-types
    types--detector
    xml-filemkmamedb looks for the detector in the
      input file (if it is a zip file) or the directory of the input file.--directory-cachemkmamedb is used to create a database from an
      input directory, it will by default write a
      .ckmame.db database file to it, caching the
      directory contents' hashes in it so that consecutive re-runs are faster.
      When mkmamedb finds such a database, it only
      computes the hashes for the files that have changed since the last
    run.-F
    format, --format
    formatcm
      (clrmamepro dat file), dat (XML datfile),
      db (ckmame(1)
      database), and mtree
      (mtree(8) file). The default is
    cm.-f,
    --force-h,
    --help--no-directory-cache--directory-cache.-o
    dbfile, --output
    dbfile--list-available-dats--list-dats--list-sets--mia-games
    file--only-files
    pattern--prog-description
    description--prog-name
    name--prog-version
    version--set
    patternmkmamedb for all sets matching
      pattern.--skip-files
    pattern-t,
    --use-temp-directory-u,
    --roms-unzipped--use-description-as-name-V,
    --version-x
    pat, --exclude
    patMAMEDB-o option. Defaults to
      “mame.db”.--directory-cacheGet an input file for mkmamedb(1) from MAME and convert it to the internal database format:
# mame -listxml | mkmamedb -
mkmamedb was written by
    Dieter Baron
    <dillo@nih.at> and
    Thomas Klausner
    <wiz@gatalith.at>.