1 ?RCS: $Id: vendorscript.U,v 1.1 1999/07/08 18:32:57 doughera Exp doughera $
3 ?RCS: Copyright (c) 1999, Andy Dougherty
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.
11 ?RCS: $Log: vendorscript.U,v $
12 ?RCS: Revision 1.1 1999/07/08 18:32:57 doughera
13 ?RCS: Initial revision
15 ?MAKE:d_vendorscript vendorscript vendorscriptexp installvendorscript: Getfile \
16 vendorbin cat Setprefixvar Oldconfig Prefixit test vendorprefix
17 ?MAKE: -pick add $@ %<
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.
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.
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.
39 ?S: This variable conditionally defines 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.
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.
55 ?H:#$d_vendorscript PERL_VENDORSCRIPT "$vendorscript" /**/
56 ?H:#$d_vendorscript PERL_VENDORSCRIPT_EXP "$vendorscriptexp" /**/
58 ?LINT:change prefixvar
59 ?LINT:set installvendorscript
60 : Set the vendorscript variables
61 case "$vendorprefix" in
62 '') d_vendorscript="$undef"
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" ;;
75 The installation process will create a directory for
76 vendor-supplied scripts.
80 rp='Pathname for the vendor-supplied scripts directory?'
83 vendorscriptexp="$ansexp"
86 prefixvar=vendorscript