3 ?RCS: Copyright (c) 1996, Andy Dougherty
4 ?RCS: Copyright (c) 1991-1997, 2004-2006, Raphael Manfredi
6 ?RCS: You may redistribute only under the terms of the Artistic License,
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 License; a copy of which may be found at the root
10 ?RCS: of the source tree for dist 4.0.
12 ?RCS: $Log: man1dir.U,v $
13 ?RCS: Revision 3.0.1.1 1997/02/28 16:10:29 ram
14 ?RCS: patch61: created
17 ?X: This was originally specific to perl5. Since perl5 has man pages that
18 ?X: go in both man1/ and man3/ directories, we need both man1dir
19 ?X: and man3dir. This unit is basically dist's mansrc.U with
20 ?X: man1 used instead of man everywhere.
22 ?MAKE:man1dir man1direxp man1ext installman1dir: afs cat nroff Loc Oldconfig \
23 spackage test Getfile Prefixit prefixexp Prefixup sysman Myread
24 ?MAKE: -pick add $@ %<
27 ?S: This variable contains the name of the directory in which manual
28 ?S: source pages are to be put. It is the responsibility of the
29 ?S: Makefile.SH to get the value of this into the proper command.
30 ?S: You must be prepared to do the ~name expansion yourself.
33 ?S: This variable is the same as the man1dir variable, but is filename
34 ?S: expanded at configuration time, for convenient use in makefiles.
37 ?S: This variable is really the same as man1direxp, unless you are using
38 ?S: AFS in which case it points to the read/write location whereas
39 ?S: man1direxp only points to the read-only access location. For extra
40 ?S: portability, you should only use this variable within your makefiles.
43 ?S: This variable contains the extension that the manual page should
44 ?S: have: one of 'n', 'l', or '1'. The Makefile must supply the '.'.
48 : determine where manual pages go
49 set man1dir man1dir none
53 $spackage has manual pages available in source form.
57 echo "However, you don't have nroff, so they're probably useless to you."
62 echo "If you don't want the manual sources installed, answer 'none'."
67 lookpath="$prefixexp/man/man1 $prefixexp/man/l_man/man1"
68 lookpath="$lookpath $prefixexp/man/p_man/man1"
69 lookpath="$lookpath $prefixexp/man/u_man/man1"
70 lookpath="$lookpath $prefixexp/man/man.1"
71 ?X: Experience has shown people expect man1dir to be under prefix,
72 ?X: so we now always put it there. Users who want other behavior
73 ?X: can answer interactively or use a command line option.
74 ?X: Does user have System V-style man paths.
76 */?_man*) dflt=`./loc . $prefixexp/l_man/man1 $lookpath` ;;
77 *) dflt=`./loc . $prefixexp/man/man1 $lookpath` ;;
87 rp="Where do the main $spackage manual pages (source) go?"
89 if $test "X$man1direxp" != "X$ansexp"; then
101 Since you are running AFS, I need to distinguish the directory in which
102 manual pages reside from the directory in which they are installed (and from
103 which they are presumably copied to the former directory by occult means).
106 case "$installman1dir" in
107 '') dflt=`echo $man1direxp | sed 's#^/afs/#/afs/.#'`;;
108 *) dflt="$installman1dir";;
111 rp='Where will man pages be installed?'
113 installman1dir="$ans"
115 installman1dir="$man1direxp"
118 : What suffix to use on installed man pages
125 rp="What suffix should be used for the main $spackage man pages?"
127 '') case "$man1dir" in