Commit | Line | Data |
---|---|---|
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 | ||
32 | The installation process will also create a directory for | |
33 | vendor-supplied add-ons. Vendors who supply perl with their system | |
34 | may find it convenient to place all vendor-supplied files in this | |
35 | directory rather than in the main distribution directory. This will | |
36 | ease upgrades between binary-compatible maintenance versions of perl. | |
37 | ||
959f3c4c JH |
38 | Of course you may also use these directories in whatever way you see |
39 | fit. For example, you might use them to access modules shared over a | |
40 | company-wide network. | |
41 | ||
86a2f2c4 JH |
42 | The default answer should be fine for most people. |
43 | This causes further questions about vendor add-ons to be skipped | |
44 | and no vendor-specific directories will be configured for perl. | |
45 | ||
959f3c4c | 46 | EOM |
86a2f2c4 JH |
47 | rp='Do you want to configure vendor-specific add-on directories?' |
48 | case "$usevendorprefix" in | |
49 | define|true|[yY]*) dflt=y ;; | |
50 | *) dflt=n ;; | |
959f3c4c | 51 | esac |
86a2f2c4 JH |
52 | . ./myread |
53 | case "$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 | ;; |
78 | esac | |
959f3c4c | 79 |