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