This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
fix .gitignore: only ignore 'perl' in root of repo, not U/perl subdir
[metaconfig.git] / U / perl / mandirstyle.U
CommitLineData
532a1639
JH
1?RCS: $Id: mandirstyle.U,v 3.1 1999/07/08 20:52:19 doughera Exp doughera $
2?RCS:
3?RCS: Copyright (c) 2000, Andy Dougherty
4?RCS:
65a32477 5?RCS: You may redistribute only under the terms of the Artistic License,
532a1639
JH
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
65a32477 8?RCS: that same Artistic License; a copy of which may be found at the root
532a1639
JH
9?RCS: of the source tree for dist 3.0.
10?RCS:
11?RCS: $Log: mandirstyle.U,v $
12?RCS:
13?MAKE:mandirstyle: test
14?MAKE: -pick add $@ %<
15?S:mandirstyle:
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).
21?S:
22?S: BSD SVR4 Description Example
23?S: Number Number man page
24?S: 1 1 Commands cat
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
32?S:
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.
35?S:.
36: determine style of existing man page installation
37if $test "$mandirstyle" = ""; then
38 if $test -d /usr/man/u_man/man1; then
39 mandirstyle=sysv
40 elif $test -d /usr/man/man1m; then
41 mandirstyle=svr4
42 elif $test -d /usr/share/man/man1m; then
43 mandirstyle=svr4
44 elif $test -d /usr/share/man/sman1m; then
45 mandirstyle=svr4 # Solaris 8 and beyond
46 else
47 # We could work a lot harder here, but there isn't
48 # really much point.
49 mandirstyle=bsd
50 fi
51fi
52echo "You appear to have $mandirstyle style man page directories."
53