[Slackbuilds-users] RFC: Proposed mandb additions to doinst/douninst template

B. Watson urchlay at slackware.uk
Sat Aug 24 07:30:23 UTC 2024



On Sat, 24 Aug 2024, B. Watson wrote:

>
> Thinking of adding this to the doinst template:
>
> ### in doinst.sh:
> # DESCRIPTION: Updates the man database (for "man -k").
> # Use one "man -f" command for each man page in the package.
> if [ -x usr/bin/mandb ]; then
>  usr/bin/mandb -f usr/man/man1/program.1.gz
> fi
>
> ### in douninst.sh:
> # DESCRIPTION: Updates the man database (for "man -k").
> # Only use one "mandb" command, and only use it if your package actually
> # includes man pages.
> if [ -x usr/bin/mandb ]; then
>  usr/bin/mandb
> fi

Whoops. Pasted wrong version of the file. The actual code that *should*
have been pasted is:


### in doinst.sh:
# DESCRIPTION: Updates the man database (for "man -k").
# Use one "man -f" command for each man page in the package.
if [ -x usr/bin/mandb ]; then
   chroot . /usr/bin/mandb -f /usr/man/man1/alsacap.1.gz &> /dev/null
fi

### in douninst.sh:
# DESCRIPTION: Updates the man database (for "man -k").
# Only use one "mandb" command, and only use it if your package actually
# includes man pages.
if [ -x usr/bin/mandb ]; then
   chroot . /usr/bin/mandb &> /dev/null
fi


The previous version was missing the chroot's and the
&>/dev/null. Sorry about that. If there were a way to un-mail an
email, I'd have done it :)

Anyway. I'm not adding anything to the template at all until it's been
discussed and tested by people who aren't me.


More information about the SlackBuilds-users mailing list