NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

rebuilding whatis database - weekly output for Sat Mar 23 04:30:00 CET 2013]



I have this in my weekly.conf (NetBSD 6.0):

    #   $NetBSD: weekly.conf,v 1.3 2000/10/01 05:53:03 lukem Exp $
    ...
    # Add local overrides below
    #
    rebuild_locatedb=YES
    rebuild_whatisdb=YES

because rebuild_whatisdb=NO could be found in /etc/defaults/weekly.
And I get this in my weekly mail:

    Date: Sat, 23 Mar 2013 04:30:00 +0100 (CET)
    From: Charlie Root <root%murthe.falu.nl@localhost>
    Subject: murthe.falu.nl weekly output for Sat Mar 23 04:30:00 CET 2013
    To: root%murthe.falu.nl@localhost


    Rebuilding locate database:

    [: closing paren expected
    Not rebuilding whatis databases

    Rebuilding man page index:

It looks like that is because of these lines in /etc/weekly:


    #   $NetBSD: weekly,v 1.25.2.2 2012/08/08 14:36:55 martin Exp $
    ...
    if checkyesno rebuild_whatisdb; then
            echo ""
            if [ -x /usr/libexec/makewhatis -a \( -f /etc/man.conf -o \
                 -o -d /usr/share/man \) ]; then
                    echo "Rebuilding whatis databases:"
                    nice -n 5 /usr/libexec/makewhatis -f
            else
                    echo "Not rebuilding whatis databases"
            fi
    fi

Do other people see that too? I'd think that the backslash would
properly continue the line of the "[" command.

Looking at it a bit more, there isn't even a /usr/libexec/makewhatis
command. That makes the existence of this bit of script even more
mysterious...

-Olaf.
-- 
___ Olaf 'Rhialto' Seibert  -- The Doctor: No, 'eureka' is Greek for
\X/ rhialto/at/xs4all.nl    -- 'this bath is too hot.'



Home | Main Index | Thread Index | Old Index