| 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 sitelib_stem: cat Getfile Oldconfig \ |
| 20 | Setprefixvar Prefixit package version sed installstyle siteprefix |
| 21 | ?MAKE: -pick add $@ %< |
| 22 | ?LINT:change prefixvar |
| 23 | ?Y:TOP |
| 24 | ?D:sitelib='' |
| 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). |
| 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. |
| 35 | ?S:. |
| 36 | ?D:sitelibexp='' |
| 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:. |
| 41 | ?D:installsitelib='' |
| 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:. |
| 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:. |
| 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. |
| 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. |
| 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:. |
| 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:. |
| 72 | ?H:#define SITELIB "$sitelib" /**/ |
| 73 | ?H:#define SITELIB_EXP "$sitelibexp" /**/ |
| 74 | ?H:#define SITELIB_STEM "$sitelib_stem" /**/ |
| 75 | ?H:. |
| 76 | ?T:prog |
| 77 | : determine where site specific libraries go. |
| 78 | : Usual default is /usr/local/lib/perl5/site_perl/$version |
| 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.]*$//'` |
| 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 | ;; |
| 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 |
| 103 | prefixvar=sitelib |
| 104 | . ./setprefixvar |
| 105 | sitelib_stem=`echo "$sitelibexp" | sed "s,/$version$,,"` |
| 106 | |