| 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 License, |
| 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 License; 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: |
| 15 |
?MAKE:usevendorprefix vendorprefix vendorprefixexp +oldvendorprefix: \ |
| 16 |
Getfile Loc Oldconfig cat prefix Myread |
| 17 |
?MAKE: -pick add $@ %< |
| 18 |
?S:usevendorprefix: |
| 19 |
?S: This variable tells whether the vendorprefix |
| 20 |
?S: and consequently other vendor* paths are in use. |
| 21 |
?S:. |
| 22 |
?S:vendorprefix: |
| 23 |
?S: This variable holds the full absolute path of the directory below |
| 24 |
?S: which the vendor will install add-on packages. |
| 25 |
?S: See INSTALL for usage and examples. |
| 26 |
?S:. |
| 27 |
?S:vendorprefixexp: |
| 28 |
?S: This variable holds the full absolute path of the directory below |
| 29 |
?S: which the vendor will install add-on packages. Derived from vendorprefix. |
| 30 |
?S:. |
| 31 |
?S:oldvendorprefix: |
| 32 |
?S: This variable is set non-null if the vendorprefix was previously defined |
| 33 |
?S: and gets set to a new value. Used internally by Configure only. |
| 34 |
?S:. |
| 35 |
: Set the vendorprefix variables |
| 36 |
$cat <<EOM |
| 37 |
|
| 38 |
The installation process will also create a directory for |
| 39 |
vendor-supplied add-ons. Vendors who supply perl with their system |
| 40 |
may find it convenient to place all vendor-supplied files in this |
| 41 |
directory rather than in the main distribution directory. This will |
| 42 |
ease upgrades between binary-compatible maintenance versions of perl. |
| 43 |
|
| 44 |
Of course you may also use these directories in whatever way you see |
| 45 |
fit. For example, you might use them to access modules shared over a |
| 46 |
company-wide network. |
| 47 |
|
| 48 |
The default answer should be fine for most people. |
| 49 |
This causes further questions about vendor add-ons to be skipped |
| 50 |
and no vendor-specific directories will be configured for perl. |
| 51 |
|
| 52 |
EOM |
| 53 |
rp='Do you want to configure vendor-specific add-on directories?' |
| 54 |
case "$usevendorprefix" in |
| 55 |
define|true|[yY]*) dflt=y ;; |
| 56 |
*) : User may have set vendorprefix directly on Configure command line. |
| 57 |
case "$vendorprefix" in |
| 58 |
''|' ') dflt=n ;; |
| 59 |
*) dflt=y ;; |
| 60 |
esac |
| 61 |
;; |
| 62 |
esac |
| 63 |
. ./myread |
| 64 |
case "$ans" in |
| 65 |
[yY]*) fn=d~+ |
| 66 |
rp='Installation prefix to use for vendor-supplied add-ons?' |
| 67 |
case "$vendorprefix" in |
| 68 |
'') dflt="$prefix" ;; |
| 69 |
*) dflt=$vendorprefix ;; |
| 70 |
esac |
| 71 |
. ./getfile |
| 72 |
: XXX Prefixit unit does not yet support siteprefix and vendorprefix |
| 73 |
oldvendorprefix='' |
| 74 |
case "$vendorprefix" in |
| 75 |
'') ;; |
| 76 |
*) case "$ans" in |
| 77 |
"$prefix") ;; |
| 78 |
*) oldvendorprefix="$prefix";; |
| 79 |
esac |
| 80 |
;; |
| 81 |
esac |
| 82 |
usevendorprefix="$define" |
| 83 |
vendorprefix="$ans" |
| 84 |
vendorprefixexp="$ansexp" |
| 85 |
;; |
| 86 |
*) usevendorprefix="$undef" |
| 87 |
vendorprefix='' |
| 88 |
vendorprefixexp='' |
| 89 |
;; |
| 90 |
esac |
| 91 |
|