File: dhelp_parse.8

package info (click to toggle)
dhelp 0.6.31
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 596 kB
  • sloc: ruby: 1,171; sh: 555; perl: 372; makefile: 83
file content (79 lines) | stat: -rw-r--r-- 1,650 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
.TH dhelp_parse 8 "29 May 2008" Debian "Debian Linux manual"
.SH NAME 
dhelp_parse \- Debian online help parser
.SH SYNOPSIS
.B dhelp_parse
.IR "[ -r | -i | -a doc-base_file | -d doc-base_file ]"
.SH DESCRIPTION
This program is used by package developers to register the
documents included in a package.

In most cases it is called by
.B install-docs
(see
.B 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
.I /usr/share/doc/HTML

.SH OPTIONS
.TP
.B \-h,\-\-help
Displays the help page.
.TP
.B \-a
Adds the documentation found in the given
.I doc-base
files to the dhelp database.
.TP
.B \-d
Deletes the documentation found in the given
.I doc-base
files from the dhelp database.
.TP
.B \-i
Does an incremental update of the documents index for all
documentation added with the \-a switch after the last index
update.
.TP
.B \-r
Ignored, kept for compatibility.

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

.SS postinst
if [ \-x /usr/sbin/dhelp_parse ]; then
.br
  dhelp_parse \-a /var/lib/doc-base/documents/foo
.br
fi

.SS prerm
if [ \-x /usr/sbin/dhelp_parse ]; then
.br
  dhelp_parse \-d /var/lib/doc-base/documents/foo
.br
fi

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

.SH SEE ALSO
dhelp(1), install-docs(8)
.SH AUTHOR
This package was written by Esteban Manchado Velázquez
(zoso@debian.org).