This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
bb80ef3b0932d1ba2ce856899583ffc592ae69ec
[metaconfig.git] / U / installdirs / vendorbin.U
1 ?RCS: $Id: vendorbin.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: vendorbin.U,v $
12 ?RCS: Revision 1.1  1999/07/08 18:32:57  doughera
13 ?RCS: Initial revision
14 ?RCS:
15 ?MAKE:d_vendorbin vendorbin vendorbinexp installvendorbin: Getfile \
16         Setprefixvar Oldconfig Prefixit vendorprefix
17 ?MAKE:  -pick add $@ %<
18 ?Y:TOP
19 ?S:vendorbin:
20 ?S:     This variable contains the eventual value of the VENDORBIN 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:     binaries in this directory with
25 ?S:             MakeMaker Makefile.PL INSTALLDIRS=vendor
26 ?S:     or equivalent.  See INSTALL for details.
27 ?S:.
28 ?S:vendorbinexp:
29 ?S:     This variable is the ~name expanded version of vendorbin, so that you
30 ?S:     may use it directly in Makefiles or shell scripts.
31 ?S:.
32 ?D:installvendorbin=''
33 ?S:installvendorbin:
34 ?S:     This variable is really the same as vendorbinexp 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_vendorbin:
39 ?S:     This variable conditionally defines PERL_VENDORBIN.
40 ?S:.
41 ?C:PERL_VENDORBIN:
42 ?C:     If defined, this symbol contains the name of a directory
43 ?C:     for holding vendor-supplied executables.
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:     binaries in this directory with
48 ?C:             MakeMaker Makefile.PL INSTALLDIRS=vendor
49 ?C:     or equivalent.  See INSTALL for details.
50 ?C:.
51 ?C:PERL_VENDORBIN_EXP:
52 ?C:     This symbol contains the ~name expanded version of VENDORBIN, to be used
53 ?C:     in programs that are not prepared to deal with ~ expansion at run-time.
54 ?C:.
55 ?H:#$d_vendorbin PERL_VENDORBIN "$vendorbin"            /**/
56 ?H:#$d_vendorbin PERL_VENDORBIN_EXP "$vendorbinexp"             /**/
57 ?H:.
58 ?LINT:change prefixvar
59 ?LINT:set installvendorbin
60 : Set the vendorbin variables
61 case "$vendorprefix" in
62 '')     d_vendorbin="$undef"
63         vendorbin=''
64         vendorbinexp=''
65         ;;
66 *)      d_vendorbin="$define"
67         : determine where vendor-supplied executables go.
68         case "$vendorbin" in
69         '') dflt=$vendorprefix/bin ;;
70         *)      dflt="$vendorbin" ;;
71         esac
72         fn=d~+
73         rp='Pathname for the vendor-supplied executables directory?'
74         . ./getfile
75         vendorbin="$ans"
76         vendorbinexp="$ansexp"
77         ;;
78 esac
79 prefixvar=vendorbin
80 . ./installprefix
81