Commit | Line | Data |
---|---|---|
959f3c4c JH |
1 | ?RCS: $Id: sitearch.U,v 3.1 1999/07/08 18:32:29 doughera Exp doughera $ |
2 | ?RCS: | |
3 | ?RCS: Copyright (c) 1996-1998, Andy Dougherty | |
4 | ?RCS: Copyright (c) 1991-1993, Raphael Manfredi | |
bbf326f0 | 5 | ?RCS: |
65a32477 | 6 | ?RCS: You may redistribute only under the terms of the Artistic License, |
959f3c4c JH |
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 | |
65a32477 | 9 | ?RCS: that same Artistic License; a copy of which may be found at the root |
959f3c4c JH |
10 | ?RCS: of the source tree for dist 3.0. |
11 | ?RCS: | |
12 | ?RCS: $Log: sitearch.U,v $ | |
13 | ?RCS: Revision 3.1 1999/07/08 18:32:29 doughera | |
14 | ?RCS: Updated for perl5.005_5x | |
15 | ?RCS: | |
16 | ?RCS: Revision 3.0.1.1 1997/02/28 16:21:30 ram | |
17 | ?RCS: patch61: created | |
18 | ?RCS: | |
53524b20 MB |
19 | ?MAKE:sitearch sitearchexp installsitearch d_sitearch: cat sed Getfile \ |
20 | Oldconfig Setprefixvar Prefixit test archname sitelib | |
959f3c4c JH |
21 | ?MAKE: -pick add $@ %< |
22 | ?Y:TOP | |
bbf326f0 | 23 | ?D:sitearch='' |
959f3c4c JH |
24 | ?S:sitearch: |
25 | ?S: This variable contains the eventual value of the SITEARCH 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-dependent modules in this directory with | |
32 | ?S: MakeMaker Makefile.PL | |
33 | ?S: or equivalent. See INSTALL for details. | |
959f3c4c | 34 | ?S:. |
bbf326f0 | 35 | ?D:sitearchexp='' |
959f3c4c JH |
36 | ?S:sitearchexp: |
37 | ?S: This variable is the ~name expanded version of sitearch, so that you | |
38 | ?S: may use it directly in Makefiles or shell scripts. | |
39 | ?S:. | |
bbf326f0 | 40 | ?D:installsitearch='' |
959f3c4c JH |
41 | ?S:installsitearch: |
42 | ?S: This variable is really the same as sitearchexp but may differ on | |
43 | ?S: those systems using AFS. For extra portability, only this variable | |
44 | ?S: should be used in makefiles. | |
45 | ?S:. | |
53524b20 MB |
46 | ?D:d_sitearch='' |
47 | ?S:d_sitearch: | |
48 | ?S: This variable conditionally defines SITEARCH to hold the pathname | |
49 | ?S: of architecture-dependent library files for $package. If | |
50 | ?S: $sitearch is the same as $archlib, then this is set to undef. | |
51 | ?S:. | |
959f3c4c JH |
52 | ?C:SITEARCH: |
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-dependent modules in this directory with | |
60 | ?C: MakeMaker Makefile.PL | |
61 | ?C: or equivalent. See INSTALL for details. | |
959f3c4c JH |
62 | ?C:. |
63 | ?C:SITEARCH_EXP: | |
64 | ?C: This symbol contains the ~name expanded version of SITEARCH, to be used | |
65 | ?C: in programs that are not prepared to deal with ~ expansion at run-time. | |
66 | ?C:. | |
53524b20 MB |
67 | ?H:#$d_sitearch SITEARCH "$sitearch" /**/ |
68 | ?H:#$d_sitearch SITEARCH_EXP "$sitearchexp" /**/ | |
959f3c4c | 69 | ?H:. |
c6d164da MB |
70 | ?LINT:change prefixvar |
71 | ?LINT:set installsitearch | |
72 | ?LINT:set sitearch | |
73 | ?LINT:set sitearchexp | |
959f3c4c | 74 | : determine where site specific architecture-dependent libraries go. |
edd6115f JH |
75 | : sitelib default is /usr/local/lib/perl5/site_perl/$version |
76 | : sitearch default is /usr/local/lib/perl5/site_perl/$version/$archname | |
959f3c4c | 77 | : sitelib may have an optional trailing /share. |
959f3c4c | 78 | case "$sitearch" in |
0fdea05a JH |
79 | '') dflt=`echo $sitelib | $sed 's,/share$,,'` |
80 | dflt="$dflt/$archname" | |
81 | ;; | |
82 | *) dflt="$sitearch" | |
83 | ;; | |
959f3c4c | 84 | esac |
0fdea05a JH |
85 | set sitearch sitearch none |
86 | eval $prefixit | |
959f3c4c JH |
87 | $cat <<EOM |
88 | ||
89 | The installation process will also create a directory for | |
90 | architecture-dependent site-specific extensions and modules. | |
91 | ||
92 | EOM | |
0fdea05a | 93 | fn=d~+ |
959f3c4c JH |
94 | rp='Pathname for the site-specific architecture-dependent library files?' |
95 | . ./getfile | |
bbf326f0 MB |
96 | prefixvar=sitearch |
97 | . ./setprefixvar | |
53524b20 MB |
98 | if $test X"$sitearch" = X"$sitelib"; then |
99 | d_sitearch="$undef" | |
100 | else | |
101 | d_sitearch="$define" | |
102 | fi | |
959f3c4c | 103 |