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: | |
bbf326f0 MB |
19 | ?MAKE:sitelib sitelibexp installsitelib sitelib_stem: cat Getfile Oldconfig \ |
20 | Setprefixvar Prefixit package version sed installstyle siteprefix | |
959f3c4c | 21 | ?MAKE: -pick add $@ %< |
bbf326f0 | 22 | ?LINT:change prefixvar |
959f3c4c | 23 | ?Y:TOP |
bbf326f0 | 24 | ?D:sitelib='' |
959f3c4c JH |
25 | ?S:sitelib: |
26 | ?S: This variable contains the eventual value of the SITELIB symbol, | |
27 | ?S: which is the name of the private library for this package. It may | |
28 | ?S: have a ~ on the front. It is up to the makefile to eventually create | |
29 | ?S: this directory while performing installation (with ~ substitution). | |
860c366a JH |
30 | ?S: The standard distribution will put nothing in this directory. |
31 | ?S: After perl has been installed, users may install their own local | |
32 | ?S: architecture-independent modules in this directory with | |
33 | ?S: MakeMaker Makefile.PL | |
34 | ?S: or equivalent. See INSTALL for details. | |
959f3c4c | 35 | ?S:. |
bbf326f0 | 36 | ?D:sitelibexp='' |
959f3c4c JH |
37 | ?S:sitelibexp: |
38 | ?S: This variable is the ~name expanded version of sitelib, so that you | |
39 | ?S: may use it directly in Makefiles or shell scripts. | |
40 | ?S:. | |
bbf326f0 | 41 | ?D:installsitelib='' |
959f3c4c JH |
42 | ?S:installsitelib: |
43 | ?S: This variable is really the same as sitelibexp but may differ on | |
44 | ?S: those systems using AFS. For extra portability, only this variable | |
45 | ?S: should be used in makefiles. | |
46 | ?S:. | |
f5609386 MS |
47 | ?S:sitelib_stem: |
48 | ?S: This variable is $sitelibexp with any trailing version-specific component | |
49 | ?S: removed. The elements in inc_version_list (inc_version_list.U) can | |
50 | ?S: be tacked onto this variable to generate a list of directories to search. | |
51 | ?S:. | |
959f3c4c JH |
52 | ?C:SITELIB: |
53 | ?C: This symbol contains the name of the private library for this package. | |
54 | ?C: The library is private in the sense that it needn't be in anyone's | |
55 | ?C: execution path, but it should be accessible by the world. The program | |
56 | ?C: should be prepared to do ~ expansion. | |
57 | ?C: The standard distribution will put nothing in this directory. | |
860c366a JH |
58 | ?C: After perl has been installed, users may install their own local |
59 | ?C: architecture-independent modules in this directory with | |
60 | ?C: MakeMaker Makefile.PL | |
61 | ?C: or equivalent. See INSTALL for details. | |
959f3c4c JH |
62 | ?C:. |
63 | ?C:SITELIB_EXP: | |
64 | ?C: This symbol contains the ~name expanded version of SITELIB, to be used | |
65 | ?C: in programs that are not prepared to deal with ~ expansion at run-time. | |
66 | ?C:. | |
f5609386 MS |
67 | ?C:SITELIB_STEM: |
68 | ?C: This define is SITELIB_EXP with any trailing version-specific component | |
69 | ?C: removed. The elements in inc_version_list (inc_version_list.U) can | |
70 | ?C: be tacked onto this variable to generate a list of directories to search. | |
71 | ?C:. | |
959f3c4c JH |
72 | ?H:#define SITELIB "$sitelib" /**/ |
73 | ?H:#define SITELIB_EXP "$sitelibexp" /**/ | |
f5609386 | 74 | ?H:#define SITELIB_STEM "$sitelib_stem" /**/ |
959f3c4c JH |
75 | ?H:. |
76 | ?T:prog | |
77 | : determine where site specific libraries go. | |
edd6115f | 78 | : Usual default is /usr/local/lib/perl5/site_perl/$version |
959f3c4c JH |
79 | : The default "style" setting is made in installstyle.U |
80 | : XXX No longer works with Prefixit stuff. | |
81 | ?X: remove any trailing -3.0 or other version identification | |
82 | prog=`echo $package | $sed 's/-*[0-9.]*$//'` | |
0fdea05a JH |
83 | case "$sitelib" in |
84 | '') case "$installstyle" in | |
85 | *lib/perl5*) dflt=$siteprefix/lib/$package/site_$prog/$version ;; | |
86 | *) dflt=$siteprefix/lib/site_$prog/$version ;; | |
87 | esac | |
88 | ;; | |
89 | *) dflt="$sitelib" | |
90 | ;; | |
959f3c4c JH |
91 | esac |
92 | $cat <<EOM | |
93 | ||
94 | The installation process will create a directory for | |
95 | site-specific extensions and modules. Most users find it convenient | |
96 | to place all site-specific files in this directory rather than in the | |
97 | main distribution directory. | |
98 | ||
99 | EOM | |
100 | fn=d~+ | |
101 | rp='Pathname for the site-specific library files?' | |
102 | . ./getfile | |
bbf326f0 MB |
103 | prefixvar=sitelib |
104 | . ./setprefixvar | |
f5609386 | 105 | sitelib_stem=`echo "$sitelibexp" | sed "s,/$version$,,"` |
959f3c4c | 106 |