dhelp_parse(8)

✨ dhelp_parse β€” the Debian online help parser, bestie πŸ’…

okay so you're looking at dhelp_parse, section 8 of the Debian Linux manual. she's a little parser, she's a little icon, and she's here to register your docs. let's get into it πŸŽ€


🌸 SYNOPSIS

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

that's the whole vibe. pick one, babe. πŸ‘‘


πŸ¦‹ DESCRIPTION

so what is this girl doing?? This program is used by package developers to register the documents included in a package. no cap. that's the whole job.

In most cases it is called by install-docs (see the doc-base package), which in turn is called from the postinst and prerm scripts of a Debian package. so like… it's usually the girl behind the girl, yk? iykyk πŸ’…

An index of the registered documents is written in the directory /usr/share/doc/HTML. that's where the magic lives, fr fr ✨


πŸ’– OPTIONS πŸ’–

okay bestie, here's the menu. every single one, no skipping:

  • -h, --help β€” Displays the help page. simple. iconic. she's telling you how to use her 🫢
  • -a β€” Adds the documentation found in the given doc-base files to the dhelp database. the "put it in" button. πŸ“
  • -d β€” Deletes the documentation found in the given doc-base files from the dhelp database. the "take it out" button. bye bestie πŸ’€
  • -i β€” Does an incremental update of the documents index for all documentation added with the -a switch after the last index update. it's giving "catch up on everything you missed" 🌈
  • -r β€” Ignored, kept for compatibility. she's literally just standing there. she's a legacy queen and we respect her πŸ‘‘

πŸŽ€ PACKAGE DEVELOPERS πŸŽ€

okay so real talk: 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 β€” and heads up, 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 the doc-base documentation). like, it has to actually be valid, bestie, no pretending πŸ™ˆ


πŸ‘€ SEE ALSO

go read those too, they're the supporting cast and they ate πŸ’…


πŸ’œ AUTHOR

This package was written by Esteban Manchado VelÑzquez (zoso@debian.org). we love a legend, periodt 🫢


and that's the tea β˜• β€” this page came to you from Debian, dated <b>29 May 2008</b>. yes she's vintage, yes she still slays. mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from