Commit | Line | Data |
---|---|---|
959f3c4c JH |
1 | ?RCS: $Id: sitelib.U,v 1.1 1999/07/08 18:32:57 doughera Exp doughera $ |
2 | ?RCS: | |
3 | ?RCS: Copyright (c) 1996-1998, Andy Dougherty | |
4 | ?RCS: Copyright (c) 1991-1993, Raphael Manfredi | |
5 | ?RCS: | |
6 | ?RCS: You may redistribute only under the terms of the Artistic Licence, | |
7 | ?RCS: as specified in the README file that comes with the distribution. | |
8 | ?RCS: You may reuse parts of this distribution only within the terms of | |
9 | ?RCS: that same Artistic Licence; a copy of which may be found at the root | |
10 | ?RCS: of the source tree for dist 3.0. | |
11 | ?RCS: | |
12 | ?RCS: $Log: sitelib.U,v $ | |
13 | ?RCS: Revision 1.1 1999/07/08 18:32:57 doughera | |
14 | ?RCS: Initial revision | |
15 | ?RCS: | |
16 | ?RCS: Revision 3.0.1.1 1997/02/28 16:21:35 ram | |
17 | ?RCS: patch61: created | |
18 | ?RCS: | |
19 | ?MAKE:sitelib sitelibexp installsitelib: cat Getfile \ | |
20 | Oldconfig Prefixit package installprefix prefix \ | |
edd6115f | 21 | version test sed installstyle siteprefix |
959f3c4c JH |
22 | ?MAKE: -pick add $@ %< |
23 | ?Y:TOP | |
24 | ?S:sitelib: | |
25 | ?S: This variable contains the eventual value of the SITELIB symbol, | |
26 | ?S: which is the name of the private library for this package. It may | |
27 | ?S: have a ~ on the front. It is up to the makefile to eventually create | |
28 | ?S: this directory while performing installation (with ~ substitution). | |
860c366a JH |
29 | ?S: The standard distribution will put nothing in this directory. |
30 | ?S: After perl has been installed, users may install their own local | |
31 | ?S: architecture-independent modules in this directory with | |
32 | ?S: MakeMaker Makefile.PL | |
33 | ?S: or equivalent. See INSTALL for details. | |
959f3c4c JH |
34 | ?S:. |
35 | ?S:sitelibexp: | |
36 | ?S: This variable is the ~name expanded version of sitelib, so that you | |
37 | ?S: may use it directly in Makefiles or shell scripts. | |
38 | ?S:. | |
39 | ?S:installsitelib: | |
40 | ?S: This variable is really the same as sitelibexp but may differ on | |
41 | ?S: those systems using AFS. For extra portability, only this variable | |
42 | ?S: should be used in makefiles. | |
43 | ?S:. | |
44 | ?C:SITELIB: | |
45 | ?C: This symbol contains the name of the private library for this package. | |
46 | ?C: The library is private in the sense that it needn't be in anyone's | |
47 | ?C: execution path, but it should be accessible by the world. The program | |
48 | ?C: should be prepared to do ~ expansion. | |
49 | ?C: The standard distribution will put nothing in this directory. | |
860c366a JH |
50 | ?C: After perl has been installed, users may install their own local |
51 | ?C: architecture-independent modules in this directory with | |
52 | ?C: MakeMaker Makefile.PL | |
53 | ?C: or equivalent. See INSTALL for details. | |
959f3c4c JH |
54 | ?C:. |
55 | ?C:SITELIB_EXP: | |
56 | ?C: This symbol contains the ~name expanded version of SITELIB, to be used | |
57 | ?C: in programs that are not prepared to deal with ~ expansion at run-time. | |
58 | ?C:. | |
59 | ?H:#define SITELIB "$sitelib" /**/ | |
60 | ?H:#define SITELIB_EXP "$sitelibexp" /**/ | |
61 | ?H:. | |
62 | ?T:prog | |
63 | : determine where site specific libraries go. | |
edd6115f | 64 | : Usual default is /usr/local/lib/perl5/site_perl/$version |
959f3c4c JH |
65 | : The default "style" setting is made in installstyle.U |
66 | : XXX No longer works with Prefixit stuff. | |
67 | ?X: remove any trailing -3.0 or other version identification | |
68 | prog=`echo $package | $sed 's/-*[0-9.]*$//'` | |
0fdea05a JH |
69 | case "$sitelib" in |
70 | '') case "$installstyle" in | |
71 | *lib/perl5*) dflt=$siteprefix/lib/$package/site_$prog/$version ;; | |
72 | *) dflt=$siteprefix/lib/site_$prog/$version ;; | |
73 | esac | |
74 | ;; | |
75 | *) dflt="$sitelib" | |
76 | ;; | |
959f3c4c JH |
77 | esac |
78 | $cat <<EOM | |
79 | ||
80 | The installation process will create a directory for | |
81 | site-specific extensions and modules. Most users find it convenient | |
82 | to place all site-specific files in this directory rather than in the | |
83 | main distribution directory. | |
84 | ||
85 | EOM | |
86 | fn=d~+ | |
87 | rp='Pathname for the site-specific library files?' | |
88 | . ./getfile | |
89 | sitelib="$ans" | |
90 | sitelibexp="$ansexp" | |
91 | : Change installation prefix, if necessary. | |
92 | if $test X"$prefix" != X"$installprefix"; then | |
0fdea05a | 93 | installsitelib=`echo $sitelibexp | $sed "s#^$prefix#$installprefix#"` |
959f3c4c JH |
94 | else |
95 | installsitelib="$sitelibexp" | |
96 | fi | |
97 |