061d398e38de6a3d0b16edac157bc2e28dcdfa0c
[dragonfly.git] / usr.bin / whereis / pathnames.h
1 /*
2  * Copyright © 2002, Jörg Wunsch
3  *
4  * Redistribution and use in source and binary forms, with or without
5  * modification, are permitted provided that the following conditions
6  * are met:
7  * 1. Redistributions of source code must retain the above copyright
8  *    notice, this list of conditions and the following disclaimer.
9  * 2. Redistributions in binary form must reproduce the above copyright
10  *    notice, this list of conditions and the following disclaimer in the
11  *    documentation and/or other materials provided with the distribution.
12  *
13  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR(S) ``AS IS'' AND ANY EXPRESS OR
14  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
15  * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
16  * DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY DIRECT,
17  * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
18  * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
19  * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
20  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
21  * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
22  * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
23  * POSSIBILITY OF SUCH DAMAGE.
24  *
25  * $FreeBSD: src/usr.bin/whereis/pathnames.h,v 1.4 2002/08/22 01:50:51 johan Exp $
26  */
27
28 /* Where to look for libexec and games */
29 #define PATH_LIBEXEC "/usr/libexec"
30 #define PATH_GAMES "/usr/games"
31
32 /* Where to look for sources. */
33 #define PATH_SOURCES                                    \
34 "/usr/src/bin:/usr/src/usr.bin:/usr/src/sbin:"          \
35 "/usr/src/usr.sbin:/usr/src/libexec:"                   \
36 "/usr/src/gnu/bin:/usr/src/gnu/usr.bin:"                \
37 "/usr/src/gnu/sbin:/usr/src/gnu/usr.sbin:"              \
38 "/usr/src/gnu/libexec:/usr/src/contrib:"                \
39 "/usr/src/secure/bin:/usr/src/secure/usr.bin:"          \
40 "/usr/src/secure/sbin:/usr/src/secure/usr.sbin:"        \
41 "/usr/src/secure/libexec:/usr/src/crypto:"              \
42 "/usr/src/games"
43
44 /* Each subdirectory of PATH_DPORTS will be appended to PATH_SOURCES. */
45 #define PATH_DPORTS "/usr/dports"
46
47 /* Each subdirectory of PATH_PKGSRC will be appended to PATH_SOURCES. */
48 #define PATH_PKGSRC "/usr/pkgsrc"
49
50 /* How to query the current manpath. */
51 #define MANPATHCMD "manpath -q"
52
53 /* How to obtain the location of manpages, and how to match this result. */
54 #define MANWHEREISCMD "man -S1:8:6 -w %s 2>/dev/null"
55 #define MANWHEREISALLCMD "man -a -w %s 2>/dev/null"
56 #define MANWHEREISMATCH "^.* [(]source: (.*)[)]$"
57
58 /* Command used to locate sources that have not been found yet. */
59 #define LOCATECMD "locate '*'/%s 2>/dev/null"