1 ?RCS: $Id: mandirstyle.U,v 3.1 1999/07/08 20:52:19 doughera Exp doughera $
3 ?RCS: Copyright (c) 2000, Andy Dougherty
5 ?RCS: You may redistribute only under the terms of the Artistic Licence,
6 ?RCS: as specified in the README file that comes with the distribution.
7 ?RCS: You may reuse parts of this distribution only within the terms of
8 ?RCS: that same Artistic Licence; a copy of which may be found at the root
9 ?RCS: of the source tree for dist 3.0.
11 ?RCS: $Log: mandirstyle.U,v $
13 ?MAKE:mandirstyle: test
14 ?MAKE: -pick add $@ %<
16 ?S: This variable indicates the style of man page directory layout
17 ?S: used on this system. Current possible values are sysv, svr4, and
18 ?S: bsd. This information is used for determining where to put various
19 ?S: man pages. Configure uses the BSD convention internally (we've got
20 ?S: to give *some* name to the variables).
22 ?S: BSD SVR4 Description Example
23 ?S: Number Number man page
25 ?S: 2 2 system calls creat
26 ?S: 3 3 library functions fread
27 ?S: 4 7 special files fd
28 ?S: 5 4 file formats magic
29 ?S: 6 6 games and demos magic
30 ?S: 7 5 miscellany eqnchar
31 ?S: 8 1M Administrative commands mount
33 ?S: The SysV style is almost the same as SVR4, but instead of
34 ?S: /usr/man/man1, there is /usr/man/u_man/man1.
36 : determine style of existing man page installation
37 if $test "$mandirstyle" = ""; then
38 if $test -d /usr/man/u_man/man1; then
40 elif $test -d /usr/man/man1m; then
42 elif $test -d /usr/share/man/man1m; then
44 elif $test -d /usr/share/man/sman1m; then
45 mandirstyle=svr4 # Solaris 8 and beyond
47 # We could work a lot harder here, but there isn't
52 echo "You appear to have $mandirstyle style man page directories."