| 1 |
?RCS: $Id: vendorscript.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: vendorscript.U,v $ |
| 12 |
?RCS: Revision 1.1 1999/07/08 18:32:57 doughera |
| 13 |
?RCS: Initial revision |
| 14 |
?RCS: |
| 15 |
?MAKE:d_vendorscript vendorscript vendorscriptexp installvendorscript: Getfile \ |
| 16 |
vendorbin cat Setprefixvar Oldconfig Prefixit test vendorprefix |
| 17 |
?MAKE: -pick add $@ %< |
| 18 |
?Y:TOP |
| 19 |
?S:vendorscript: |
| 20 |
?S: This variable contains the eventual value of the VENDORSCRIPT symbol. |
| 21 |
?S: 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 additional |
| 24 |
?S: executable scripts in this directory with |
| 25 |
?S: MakeMaker Makefile.PL INSTALLDIRS=vendor |
| 26 |
?S: or equivalent. See INSTALL for details. |
| 27 |
?S:. |
| 28 |
?S:vendorscriptexp: |
| 29 |
?S: This variable is the ~name expanded version of vendorscript, so that you |
| 30 |
?S: may use it directly in Makefiles or shell scripts. |
| 31 |
?S:. |
| 32 |
?D:installvendorscript='' |
| 33 |
?S:installvendorscript: |
| 34 |
?S: This variable is really the same as vendorscriptexp 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 |
?S:d_vendorscript: |
| 39 |
?S: This variable conditionally defines PERL_VENDORSCRIPT. |
| 40 |
?S:. |
| 41 |
?C:PERL_VENDORSCRIPT: |
| 42 |
?C: If defined, this symbol contains the name of a directory |
| 43 |
?C: for holding vendor-supplied executable scripts. |
| 44 |
?C: It may have a ~ on the front. |
| 45 |
?C: The standard distribution will put nothing in this directory. |
| 46 |
?C: Vendors who distribute perl may wish to place additional |
| 47 |
?C: executable scripts in this directory with |
| 48 |
?C: MakeMaker Makefile.PL INSTALLDIRS=vendor |
| 49 |
?C: or equivalent. See INSTALL for details. |
| 50 |
?C:. |
| 51 |
?C:PERL_VENDORSCRIPT_EXP: |
| 52 |
?C: This symbol contains the ~name expanded version of VENDORSCRIPT, to be used |
| 53 |
?C: in programs that are not prepared to deal with ~ expansion at run-time. |
| 54 |
?C:. |
| 55 |
?H:#$d_vendorscript PERL_VENDORSCRIPT "$vendorscript" /**/ |
| 56 |
?H:#$d_vendorscript PERL_VENDORSCRIPT_EXP "$vendorscriptexp" /**/ |
| 57 |
?H:. |
| 58 |
?LINT:change prefixvar |
| 59 |
?LINT:set installvendorscript |
| 60 |
: Set the vendorscript variables |
| 61 |
case "$vendorprefix" in |
| 62 |
'') d_vendorscript="$undef" |
| 63 |
vendorscript='' |
| 64 |
vendorscriptexp='' |
| 65 |
;; |
| 66 |
*) d_vendorscript="$define" |
| 67 |
: determine where vendor-supplied scripts go. |
| 68 |
case "$vendorscript" in |
| 69 |
'') dflt=$vendorprefix/script |
| 70 |
$test -d $dflt || dflt=$vendorbin ;; |
| 71 |
*) dflt="$vendorscript" ;; |
| 72 |
esac |
| 73 |
$cat <<EOM |
| 74 |
|
| 75 |
The installation process will create a directory for |
| 76 |
vendor-supplied scripts. |
| 77 |
|
| 78 |
EOM |
| 79 |
fn=d~+ |
| 80 |
rp='Pathname for the vendor-supplied scripts directory?' |
| 81 |
. ./getfile |
| 82 |
vendorscript="$ans" |
| 83 |
vendorscriptexp="$ansexp" |
| 84 |
;; |
| 85 |
esac |
| 86 |
prefixvar=vendorscript |
| 87 |
. ./installprefix |
| 88 |
|