1142425Snectar/*
2160814Ssimon * Copyright �� 2002, J��rg Wunsch
3142425Snectar *
4142425Snectar * Redistribution and use in source and binary forms, with or without
5142425Snectar * modification, are permitted provided that the following conditions
6142425Snectar * are met:
7142425Snectar * 1. Redistributions of source code must retain the above copyright
8142425Snectar *    notice, this list of conditions and the following disclaimer.
9142425Snectar * 2. Redistributions in binary form must reproduce the above copyright
10142425Snectar *    notice, this list of conditions and the following disclaimer in the
11142425Snectar *    documentation and/or other materials provided with the distribution.
12142425Snectar *
13142425Snectar * THIS SOFTWARE IS PROVIDED BY THE AUTHOR(S) ``AS IS'' AND ANY EXPRESS OR
14142425Snectar * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
15142425Snectar * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
16142425Snectar * DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY DIRECT,
17142425Snectar * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
18142425Snectar * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
19142425Snectar * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
20238405Sjkim * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
21238405Sjkim * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
22142425Snectar * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
23142425Snectar * POSSIBILITY OF SUCH DAMAGE.
24142425Snectar *
25142425Snectar * $FreeBSD$
26142425Snectar */
27142425Snectar
28142425Snectar/* Where to look for libexec and games */
29142425Snectar#define PATH_LIBEXEC "/usr/libexec"
30142425Snectar#define PATH_GAMES "/usr/games"
31142425Snectar
32142425Snectar/* Where to look for sources. */
33142425Snectar#define PATH_SOURCES					\
34142425Snectar"/usr/src/bin:/usr/src/usr.bin:/usr/src/sbin:"		\
35142425Snectar"/usr/src/usr.sbin:/usr/src/libexec:"			\
36238405Sjkim"/usr/src/gnu/bin:/usr/src/gnu/usr.bin:"		\
37142425Snectar"/usr/src/gnu/sbin:/usr/src/gnu/usr.sbin:"		\
38142425Snectar"/usr/src/gnu/libexec:/usr/src/contrib:"		\
39142425Snectar"/usr/src/secure/bin:/usr/src/secure/usr.bin:"		\
40142425Snectar"/usr/src/secure/sbin:/usr/src/secure/usr.sbin:"	\
41142425Snectar"/usr/src/secure/libexec:/usr/src/crypto:"		\
42142425Snectar"/usr/src/games"
43142425Snectar
44142425Snectar/* Each subdirectory of PATH_PORTS will be appended to PATH_SOURCES. */
45142425Snectar#define PATH_PORTS "/usr/ports"
46142425Snectar
47142425Snectar/* How to query the current manpath. */
48142425Snectar#define MANPATHCMD "manpath -q"
49160814Ssimon
50160814Ssimon/* How to obtain the location of manpages, and how to match this result. */
51142425Snectar#define MANWHEREISCMD "man -S1:8:6 -w %s 2>/dev/null"
52142425Snectar#define MANWHEREISALLCMD "man -a -w %s 2>/dev/null"
53142425Snectar#define MANWHEREISMATCH "^.* [(]source: (.*)[)]$"
54142425Snectar
55142425Snectar/* Command used to locate sources that have not been found yet. */
56142425Snectar#define LOCATECMD "locate '*'/%s 2>/dev/null"
57142425Snectar