1 ?RCS: $Id: installstyle.U,v 1.2 1999/07/13 14:56:06 doughera Exp $
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: installstyle.U,v $
12 ?RCS: Revision 1.2 1999/07/13 14:56:06 doughera
13 ?RCS: Fix dependencies. Add more comments.
15 ?RCS: Revision 1.1 1999/07/12 17:30:41 doughera
16 ?RCS: Initial revision
19 ?MAKE:installstyle: prefix Myread
20 ?MAKE: -pick add $@ %<
21 ?X: Myread dependence is for dflt.
23 ?S: This variable describes the "style" of the perl installation.
24 ?S: This is intended to be useful for tools that need to
25 ?S: manipulate entire perl distributions. Perl itself doesn't use
26 ?S: this to find its libraries -- the library directories are
27 ?S: stored directly in Config.pm. Currently, there are only two
28 ?S: styles: "lib" and "lib/perl5". The default library locations
29 ?S: (e.g. privlib, sitelib) are either $prefix/lib or
30 ?S: $prefix/lib/perl5. The former is useful if $prefix is a
31 ?S: directory dedicated to perl (e.g. /opt/perl), while the latter
32 ?S: is useful if $prefix is shared by many packages, e.g. if
33 ?S: $prefix=/usr/local.
35 ?S: This may later be extended to include other information, so
36 ?S: be careful with pattern-matching on the results.
38 ?S: For compatibility with perl5.005 and earlier, the default
39 ?S: setting is based on whether or not $prefix contains the string
42 : determine installation style
43 : For now, try to deduce it from prefix unless it is already set.
44 : Reproduce behavior of 5.005 and earlier, maybe drop that in 5.7.
45 case "$installstyle" in
48 *) dflt='lib/perl5' ;;
51 *) dflt="$installstyle" ;;
53 : Probably not worth prompting for this since we prompt for all
54 : the directories individually, and the prompt would be too long and