1 ?RCS: $Id: mansrc.U 1 2006-08-24 12:32:52Z rmanfredi $
3 ?RCS: Copyright (c) 1991-1997, 2004-2006, Raphael Manfredi
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 4.0.
11 ?RCS: $Log: mansrc.U,v $
12 ?RCS: Revision 3.0.1.9 1997/02/28 16:12:03 ram
13 ?RCS: patch61: don't ask for AFS when they choose to not install pages
15 ?RCS: Revision 3.0.1.8 1995/09/25 09:16:58 ram
16 ?RCS: patch59: unit is now forced to the top of Configure, if possible
18 ?RCS: Revision 3.0.1.7 1995/02/15 14:15:31 ram
19 ?RCS: patch51: was mistakenly duplicating /usr/local/man/man1 (ADO)
20 ?RCS: patch51: added /opt/man/man1 to the lookpath (ADO)
22 ?RCS: Revision 3.0.1.6 1995/01/30 14:39:34 ram
23 ?RCS: patch49: can now handle installation prefix changes (from WED)
25 ?RCS: Revision 3.0.1.5 1995/01/11 15:32:25 ram
26 ?RCS: patch45: can now use Loc variables since path stripping is deferred
28 ?RCS: Revision 3.0.1.4 1994/08/29 16:30:38 ram
29 ?RCS: patch32: now uses installation prefix for default setting
31 ?RCS: Revision 3.0.1.3 1994/05/06 15:11:10 ram
32 ?RCS: patch23: added lint hint, assuring that nroff is used
34 ?RCS: Revision 3.0.1.2 1994/01/24 14:14:39 ram
35 ?RCS: patch16: now uses _nroff in case user asked for portability
37 ?RCS: Revision 3.0.1.1 1993/09/13 16:09:31 ram
38 ?RCS: patch10: allows for L1 man page extension (WAD)
40 ?RCS: Revision 3.0 1993/08/18 12:09:14 ram
41 ?RCS: Baseline for dist 3.0 netwide release.
43 ?MAKE:mansrc mansrcexp manext installmansrc: afs cat nroff Loc Oldconfig \
44 sysman spackage test Getfile Prefixit prefixexp Prefixup
45 ?MAKE: -pick add $@ %<
48 ?S: This variable contains the name of the directory in which manual
49 ?S: source pages are to be put. It is the responsibility of the
50 ?S: Makefile.SH to get the value of this into the proper command.
51 ?S: You must be prepared to do the ~name expansion yourself.
54 ?S: This variable is the same as the mansrc variable, but is filename
55 ?S: expanded at configuration time, for convenient use in makefiles.
58 ?S: This variable is really the same as mansrcexp, unless you are using
59 ?S: AFS in which case it points to the read/write location whereas
60 ?S: mansrcexp only points to the read-only access location. For extra
61 ?S: portability, you should only use this variable within your makefiles.
64 ?S: This variable contains the extension that the manual page should
65 ?S: have: one of 'n', 'l', or '1'. The Makefile must supply the '.'.
69 : determine where manual pages go
70 set mansrc mansrc none
74 $spackage has manual pages available in source form.
78 echo "However, you don't have nroff, so they're probably useless to you."
83 echo "If you don't want the manual sources installed, answer 'none'."
86 lookpath="$prefixexp/share/man/man1 $prefixexp/man/man1"
87 lookpath="$lookpath $prefixexp/man/u_man/man1 $prefixexp/man/l_man/man1"
88 lookpath="$lookpath /usr/local/man/man1 /opt/man/man1 /usr/man/manl"
89 lookpath="$lookpath /usr/share/man/man1 /usr/local/share/man/man1"
90 lookpath="$lookpath /usr/man/local/man1 /usr/man/l_man/man1"
91 lookpath="$lookpath /usr/local/man/u_man/man1 /usr/local/man/l_man/man1"
92 lookpath="$lookpath /usr/man/man.L"
93 mansrc=`./loc . $prefixexp/man/man1 $lookpath`
94 if $test -d "$mansrc"; then
108 rp='Where do the manual pages (source) go?'
110 if test "X$mansrcexp" != "X$ansexp"; then
119 if $afs && $test "$mansrc"; then
122 Since you are running AFS, I need to distinguish the directory in which
123 manual pages reside from the directory in which they are installed (and from
124 which they are presumably copied to the former directory by occult means).
127 case "$installmansrc" in
128 '') dflt=`echo $mansrcexp | sed 's#^/afs/#/afs/.#'`;;
129 *) dflt="$installmansrc";;
132 rp='Where will man pages be installed?'
136 installmansrc="$mansrcexp"