[Slackbuilds-users] RFC: Proposed mandb additions to doinst/douninst template
Duncan Roe
duncan_roe at optusnet.com.au
Mon Sep 16 10:21:25 UTC 2024
On Mon, Sep 16, 2024 at 04:23:59AM -0400, B. Watson wrote:
>
>
> On Mon, 16 Sep 2024, Duncan Roe wrote:
>
> > [ ! -d usr/man ] || find usr/man -type f -a -name '*.gz' | xargs -r touch
> >
> > to install/doinst.sh. The man pages are now modified at install time so the
> > daily mandb will process them.
> >
> > Or am I missing something?
>
> I meant to mention in the previous message...
>
> Touching every *.gz file under /usr/man would be a bad idea, because there's
> over 10,000 of them on a full Slackware install. Might take a while to run,
> if nothing else.
>
> But, not needed. Touching just the directories will be quick and is
> actually what's required.
D'oh! I only meant to touch *newly installed* files. Would need to run find at
build time and append touch commands to doinst.sh.
>From strace of mandb I can see it is reading directory entries. Are you sure it
isn't checking file modification times? I would have thought it had to.
Cheers ... Duncan.
More information about the SlackBuilds-users
mailing list