199821Sjoerg/*
299821Sjoerg * Copyright � 2002, J�rg Wunsch
399821Sjoerg *
499821Sjoerg * Redistribution and use in source and binary forms, with or without
599821Sjoerg * modification, are permitted provided that the following conditions
699821Sjoerg * are met:
799821Sjoerg * 1. Redistributions of source code must retain the above copyright
899821Sjoerg *    notice, this list of conditions and the following disclaimer.
999821Sjoerg * 2. Redistributions in binary form must reproduce the above copyright
1099821Sjoerg *    notice, this list of conditions and the following disclaimer in the
1199821Sjoerg *    documentation and/or other materials provided with the distribution.
1299821Sjoerg *
1399821Sjoerg * THIS SOFTWARE IS PROVIDED BY THE AUTHOR(S) ``AS IS'' AND ANY EXPRESS OR
1499821Sjoerg * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
1599821Sjoerg * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
1699821Sjoerg * DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY DIRECT,
1799821Sjoerg * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
1899821Sjoerg * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
1999821Sjoerg * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
2099821Sjoerg * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
2199821Sjoerg * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
2299821Sjoerg * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
2399821Sjoerg * POSSIBILITY OF SUCH DAMAGE.
2499821Sjoerg *
2599821Sjoerg * $FreeBSD$
2699821Sjoerg */
2799821Sjoerg
28100691Sjohan/* Where to look for libexec and games */
29100691Sjohan#define PATH_LIBEXEC "/usr/libexec"
30100691Sjohan#define PATH_GAMES "/usr/games"
31100691Sjohan
3299821Sjoerg/* Where to look for sources. */
3399821Sjoerg#define PATH_SOURCES					\
3499821Sjoerg"/usr/src/bin:/usr/src/usr.bin:/usr/src/sbin:"		\
3599821Sjoerg"/usr/src/usr.sbin:/usr/src/libexec:"			\
3699821Sjoerg"/usr/src/gnu/bin:/usr/src/gnu/usr.bin:"		\
3799821Sjoerg"/usr/src/gnu/sbin:/usr/src/gnu/usr.sbin:"		\
3899821Sjoerg"/usr/src/gnu/libexec:/usr/src/contrib:"		\
3999821Sjoerg"/usr/src/secure/bin:/usr/src/secure/usr.bin:"		\
4099821Sjoerg"/usr/src/secure/sbin:/usr/src/secure/usr.sbin:"	\
41100608Sjohan"/usr/src/secure/libexec:/usr/src/crypto:"		\
42100608Sjohan"/usr/src/games"
4399821Sjoerg
4499821Sjoerg/* Each subdirectory of PATH_PORTS will be appended to PATH_SOURCES. */
4599821Sjoerg#define PATH_PORTS "/usr/ports"
4699821Sjoerg
4799821Sjoerg/* How to query the current manpath. */
4899821Sjoerg#define MANPATHCMD "manpath -q"
4999821Sjoerg
5099821Sjoerg/* How to obtain the location of manpages, and how to match this result. */
51100608Sjohan#define MANWHEREISCMD "man -S1:8:6 -w %s 2>/dev/null"
52102246Sjohan#define MANWHEREISALLCMD "man -a -w %s 2>/dev/null"
5399821Sjoerg#define MANWHEREISMATCH "^.* [(]source: (.*)[)]$"
5499821Sjoerg
5599821Sjoerg/* Command used to locate sources that have not been found yet. */
5699821Sjoerg#define LOCATECMD "locate '*'/%s 2>/dev/null"
57