1 ?RCS: $Id: man1dir.U,v 3.2 1999/07/08 20:57:21 doughera Exp doughera $
3 ?RCS: Copyright (c) 1996, 1999 Andy Dougherty
4 ?RCS: Copyright (c) 1991-1993, Raphael Manfredi
6 ?RCS: You may redistribute only under the terms of the Artistic Licence,
7 ?RCS: as specified in the README file that comes with the distribution.
8 ?RCS: You may reuse parts of this distribution only within the terms of
9 ?RCS: that same Artistic Licence; a copy of which may be found at the root
10 ?RCS: of the source tree for dist 3.0.
12 ?RCS: $Log: man1dir.U,v $
13 ?RCS: Revision 3.2 1999/07/08 20:57:21 doughera
14 ?RCS: Used installprefix.
16 ?RCS: Revision 3.1 1999/07/08 20:52:19 doughera
17 ?RCS: Updated for perl5.005_5x
19 ?RCS: Revision 3.0.1.1 1997/02/28 16:10:29 ram
20 ?RCS: patch61: created
22 ?X: This was originally specific to perl5. Since perl5 has man pages that
23 ?X: go in both man1/ and man3/ directories, we need both man1dir
24 ?X: and man3dir. This unit is basically dist's mansrc.U with
25 ?X: man1 used instead of man everywhere.
27 ?MAKE:man1dir man1direxp man1ext installman1dir: cat nroff Loc Oldconfig \
28 spackage test Getfile Setprefixvar Prefixit Prefixup sysman Myread \
30 ?MAKE: -pick add $@ %<
34 ?S: This variable contains the name of the directory in which manual
35 ?S: source pages are to be put. It is the responsibility of the
36 ?S: Makefile.SH to get the value of this into the proper command.
37 ?S: You must be prepared to do the ~name expansion yourself.
41 ?S: This variable is the same as the man1dir variable, but is filename
42 ?S: expanded at configuration time, for convenient use in makefiles.
46 ?S: This variable is really the same as man1direxp, unless you are using
47 ?S: AFS in which case it points to the read/write location whereas
48 ?S: man1direxp only points to the read-only access location. For extra
49 ?S: portability, you should only use this variable within your makefiles.
52 ?S: This variable contains the extension that the manual page should
53 ?S: have: one of 'n', 'l', or '1'. The Makefile must supply the '.'.
57 ?LINT:change prefixvar
59 : determine where manual pages go
60 set man1dir man1dir none
64 $spackage has manual pages available in source form.
68 echo "However, you don't have nroff, so they're probably useless to you."
73 echo "If you don't want the manual sources installed, answer 'none'."
78 lookpath="$prefixexp/share/man/man1"
79 lookpath="$lookpath $prefixexp/man/man1 $prefixexp/man/l_man/man1"
80 lookpath="$lookpath $prefixexp/man/p_man/man1"
81 lookpath="$lookpath $prefixexp/man/u_man/man1"
82 lookpath="$lookpath $prefixexp/man/man.1"
83 ?X: Experience has shown people expect man1dir to be under prefix,
84 ?X: so we now always put it there. Users who want other behavior
85 ?X: can answer interactively or use a command line option.
86 ?X: Does user have System V-style man paths.
88 */?_man*) dflt=`./loc . $prefixexp/l_man/man1 $lookpath` ;;
89 *) dflt=`./loc . $prefixexp/man/man1 $lookpath` ;;
99 rp="Where do the main $spackage manual pages (source) go?"
101 if $test "X$man1direxp" != "X$ansexp"; then
112 : What suffix to use on installed man pages
119 rp="What suffix should be used for the main $spackage man pages?"
121 '') case "$man1dir" in