This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Megalopatch for Configure: Andy's new installation schemes;
[metaconfig.git] / U / installdirs / siteman3.U
CommitLineData
0fdea05a
JH
1?RCS: $Id$
2?RCS:
3?RCS: Copyright (c) 1999 Jarkko Hietaniemi
4?RCS:
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.
10?RCS:
11?MAKE:siteman3 siteman3exp installsiteman3: test Getfile \
12 prefix installprefix siteprefix man3dir sed
13?MAKE: -pick add $@ %<
14?Y:TOP
15?S:siteman3:
16?S: This variable contains the name of the directory in which site-specific
17?S: library man source pages are to be put. It is the responsibility of the
18?S: Makefile.SH to get the value of this into the proper command.
19?S: You must be prepared to do the ~name expansion yourself.
20?S: The standard distribution will put nothing in this directory.
21?S: After perl has been installed, users may install their own local
22?S: man3 pages in this directory with
23?S: MakeMaker Makefile.PL
24?S: or equivalent. See INSTALL for details.
25?S:.
26?S:siteman3exp:
27?S: This variable is the same as the siteman3 variable, but is filename
28?S: expanded at configuration time, for convenient use in makefiles.
29?S:.
30?S:installsiteman3:
31?S: This variable is really the same as siteman3exp, unless you are using
32?S: AFS in which case it points to the read/write location whereas
33?S: man3direxp only points to the read-only access location. For extra
34?S: portability, you should only use this variable within your makefiles.
35?S:.
36: determine where add-on library man pages go
37case "$siteman3" in
38'') dflt=`echo "$man3dir" | $sed "s#^$prefix#$siteprefix#"` ;;
39*) dflt=$siteman3 ;;
40esac
41case "$dflt" in
42''|' ') dflt=none ;;
43esac
44fn=dn+~
45rp='Pathname where the site-specific library manual pages should be installed?'
46. ./getfile
47siteman3="$ans"
48siteman3exp="$ansexp"
49: Use ' ' for none so value is preserved next time through Configure
50$test X"$siteman3" = "X" && siteman3=' '
51: Change installation prefix, if necessary.
52if $test X"$prefix" != X"$installprefix"; then
53 installsiteman3=`echo "$siteman3exp" | $sed "s#^$prefix#$installprefix#"`
54else
55 installsiteman3="$siteman3exp"
56fi
57