This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
2d42adb6d88989b5702044c052b7b0ba41cb2c36
[metaconfig.git] / U / installdirs / vendorman1.U
1 ?RCS: $Id: vendorman1.U,v 1.1 1999/07/08 18:32:57 doughera Exp doughera $
2 ?RCS:
3 ?RCS: Copyright (c) 1999, Andy Dougherty
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 ?RCS: $Log: vendorman1.U,v $
12 ?RCS: Revision 1.1  1999/07/08 18:32:57  doughera
13 ?RCS: Initial revision
14 ?RCS:
15 ?MAKE:vendorman1 vendorman1exp installvendorman1: man1dir Getfile \
16         Oldconfig Setprefixvar Prefixit test vendorprefix prefix sed
17 ?MAKE:  -pick add $@ %<
18 ?Y:TOP
19 ?S:vendorman1:
20 ?S:     This variable contains the name of the directory for man1
21 ?S:     pages.  It may have a ~ on the front.
22 ?S:     The standard distribution will put nothing in this directory.
23 ?S:     Vendors who distribute perl may wish to place their own
24 ?S:     man1 pages in this directory with
25 ?S:             MakeMaker Makefile.PL INSTALLDIRS=vendor
26 ?S:     or equivalent.  See INSTALL for details.
27 ?S:.
28 ?S:vendorman1exp:
29 ?S:     This variable is the ~name expanded version of vendorman1, so that you
30 ?S:     may use it directly in Makefiles or shell scripts.
31 ?S:.
32 ?D:installvendorman1=''
33 ?S:installvendorman1:
34 ?S:     This variable is really the same as vendorman1exp but may differ on
35 ?S:     those systems using AFS. For extra portability, only this variable
36 ?S:     should be used in makefiles.
37 ?S:.
38 ?LINT:change prefixvar
39 ?LINT:set installvendorman1
40 : Set the vendorman1 variables
41 case "$vendorprefix" in
42 '')     vendorman1=''
43         vendorman1exp=''
44         ;;
45 *)      : determine where vendor-supplied manual pages go.
46         case "$vendorman1" in
47         '') dflt=`echo "$man1dir" | $sed "s#^$prefix#$vendorprefix#"` ;;
48         *)      dflt=$vendorman1 ;;
49         esac
50         case "$dflt" in
51         ''|' ') dflt=none ;;
52         esac
53         fn=nd~+
54         rp='Pathname for the vendor-supplied manual section 1 pages?'
55         . ./getfile
56         vendorman1="$ans"
57         vendorman1exp="$ansexp"
58         ;;
59 esac
60 : Use ' ' for none so value is preserved next time through Configure
61 $test X"$vendorman1" = "X" && vendorman1=' '
62 prefixvar=vendorman1
63 . ./installprefix
64