410d0f4380
This code has been developed by Abhinav Upadhyay as part of Google's Summer of Code 2011. It uses libmandoc to parse man pages and builds a Full Text Index in a SQLite database. The combination of indexing the full manual page, filtering out stop words and ranking individual matches based on the section gives a much improved user experience. The old makewhatis and friends are kept under MKMAKEMANDB=no for now.
25 lines
434 B
Bash
Executable File
25 lines
434 B
Bash
Executable File
#!/bin/sh
|
|
#
|
|
# $NetBSD: makemandb,v 1.1 2012/02/07 19:13:30 joerg Exp $
|
|
#
|
|
|
|
# PROVIDE: makemandb
|
|
# REQUIRE: DAEMON
|
|
# BEFORE: LOGIN
|
|
|
|
$_rc_subr_loaded . /etc/rc.subr
|
|
|
|
name="makemandb"
|
|
required_files="/etc/man.conf /usr/sbin/makemandb"
|
|
start_cmd="makemandb_start"
|
|
stop_cmd=":"
|
|
|
|
makemandb_start()
|
|
{
|
|
# Initiate update build in the background
|
|
nice -n 5 /usr/sbin/makemandb -q > /dev/null 2>&1 &
|
|
}
|
|
|
|
load_rc_config $name
|
|
run_rc_command "$1"
|