This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
In accordance with (metaconfig) change #3737.
[metaconfig.git] / U / installdirs / vendorprefix.U
CommitLineData
959f3c4c
JH
1?RCS: $Id: vendorprefix.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: vendorprefix.U,v $
12?RCS: Revision 1.1 1999/07/08 18:32:57 doughera
13?RCS: Initial revision
14?RCS:
86a2f2c4
JH
15?MAKE:usevendorprefix vendorprefix vendorprefixexp +oldvendorprefix: \
16 Getfile Loc Oldconfig cat prefix
959f3c4c
JH
17?MAKE: -pick add $@ %<
18?S:vendorprefix:
19?S: This variable holds the full absolute path of the directory below
20?S: which the vendor will install add-on packages.
21?S:.
22?S:vendorprefixexp:
23?S: This variable holds the full absolute path of the directory below
24?S: which the vendor will install add-on packages. Derived from vendorprefix.
25?S:.
26?S:oldvendorprefix:
27?S: This variable is set non-null if the vendorprefix was previously defined
28?S: and gets set to a new value. Used internally by Configure only.
29?S:.
30$cat <<EOM
31
32The installation process will also create a directory for
33vendor-supplied add-ons. Vendors who supply perl with their system
34may find it convenient to place all vendor-supplied files in this
35directory rather than in the main distribution directory. This will
36ease upgrades between binary-compatible maintenance versions of perl.
37
959f3c4c
JH
38Of course you may also use these directories in whatever way you see
39fit. For example, you might use them to access modules shared over a
40company-wide network.
41
86a2f2c4
JH
42The default answer should be fine for most people.
43This causes further questions about vendor add-ons to be skipped
44and no vendor-specific directories will be configured for perl.
45
959f3c4c 46EOM
86a2f2c4
JH
47rp='Do you want to configure vendor-specific add-on directories?'
48case "$usevendorprefix" in
49define|true|[yY]*) dflt=y ;;
50*) dflt=n ;;
959f3c4c 51esac
86a2f2c4
JH
52. ./myread
53case "$ans" in
54[yY]*) fn=d~+
55 rp='Installation prefix to use for vendor-supplied add-ons?'
56 case "$vendorprefix" in
57 '') dflt='' ;;
58 *) dflt=$vendorprefix ;;
959f3c4c 59 esac
86a2f2c4
JH
60 . ./getfile
61 oldvendorprefix=''
62 case "$vendorprefix" in
63 '') ;;
64 *) case "$ans" in
65 "$prefix") ;;
66 *) oldvendorprefix="$prefix";;
67 esac
68 ;;
69 esac
70 usevendorprefix="$define"
71 vendorprefix="$ans"
72 vendorprefixexp="$ansexp"
73 ;;
74*) usevendorprefix="$undef"
75 vendorprefix=''
76 vendorprefixexp=''
959f3c4c
JH
77 ;;
78esac
959f3c4c 79