dhelp_parse(8)

dhelp_parse8

Debian online help parser

Usage

dhelp_parse [{-r | -i | -a doc-base_file | -d doc-base_file}]

Overview

This program is used by package developers to register the documents included in a package.

In most cases it is called by install-docs (see doc-base package), which in turn is called from the postinst and prerm scripts of a Debian package.

An index of the registered documents is written in the directory /usr/share/doc/HTML

Options

-h,--help

Displays the help page.

-a

Adds the documentation found in the given doc-base files to the dhelp database.

-d

Deletes the documentation found in the given doc-base files from the dhelp database.

-i

Does an incremental update of the documents index for all documentation added with the -a switch after the last index update.

-r

Ignored, kept for compatibility.

Package developers

You should usually rely on install-docs to do the work for you, but if for some reason you want to use dhelp_parse directly (not recommended!), you have to call it like this:

postinst

if [ -x /usr/sbin/dhelp_parse ]; then

dhelp_parse -a /var/lib/doc-base/documents/foo
fi

prerm

if [ -x /usr/sbin/dhelp_parse ]; then

dhelp_parse -d /var/lib/doc-base/documents/foo
fi

Note that /var/lib/doc-base/documents/foo has to be a valid doc-base file (see doc-base documentation).

Releases

12 releases since Debian 2.0 (Hamm); the text changed 5 times.

  1. 2.0–2.1
  2. 2.2
  3. 3.1–4.0
  4. 5.0–6.0
  5. 7
  6. 8–13

--help since Debian 5.0 (Lenny); -h since Debian 5.0 (Lenny); -i since Debian 7 (Wheezy).

Author

This package was written by Esteban Manchado Velázquez ([email protected]).

From dhelp 0.6.31 in Debian 13 (Trixie). Parsed by carta from the page's man source.