| 1 |
?RCS: $Id: privlib.U,v 3.1 1999/07/08 18:32:29 doughera Exp doughera $ |
| 2 |
?RCS: |
| 3 |
?RCS: Copyright (c) 1991-1993, Raphael Manfredi |
| 4 |
?RCS: |
| 5 |
?RCS: This file is included with or a derivative work of a file included |
| 6 |
?RCS: with the metaconfig program of Raphael Manfredi's "dist" distribution. |
| 7 |
?RCS: In accordance with clause 7 of dist's modified Artistic License: |
| 8 |
?RCS: |
| 9 |
?RCS: You may distribute under the terms of either the GNU General Public |
| 10 |
?RCS: License or the Artistic License, as specified in the README file. |
| 11 |
?RCS: |
| 12 |
?RCS: $Log: privlib.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.4 1995/09/25 09:17:09 ram |
| 17 |
?RCS: patch59: unit is now forced to the top of Configure, if possible |
| 18 |
?RCS: |
| 19 |
?RCS: Revision 3.0.1.3 1995/01/30 14:44:23 ram |
| 20 |
?RCS: patch49: can now handle installation prefix changes (from WED) |
| 21 |
?RCS: |
| 22 |
?RCS: Revision 3.0.1.2 1994/08/29 16:31:52 ram |
| 23 |
?RCS: patch32: now uses installation prefix |
| 24 |
?RCS: |
| 25 |
?RCS: Revision 3.0.1.1 1993/09/13 16:12:34 ram |
| 26 |
?RCS: patch10: added support for /local/lib (WED) |
| 27 |
?RCS: patch10: prompt phrasing made more explicit (WED) |
| 28 |
?RCS: |
| 29 |
?RCS: Revision 3.0 1993/08/18 12:09:35 ram |
| 30 |
?RCS: Baseline for dist 3.0 netwide release. |
| 31 |
?RCS: |
| 32 |
?MAKE:privlib privlibexp installprivlib: package cat Getfile Oldconfig \ |
| 33 |
Setprefixvar Prefixit version installstyle binexp |
| 34 |
?MAKE: -pick add $@ %< |
| 35 |
?Y:TOP |
| 36 |
?D:privlib='' |
| 37 |
?S:privlib: |
| 38 |
?S: This variable contains the eventual value of the PRIVLIB symbol, |
| 39 |
?S: which is the name of the private library for this package. It may |
| 40 |
?S: have a ~ on the front. It is up to the makefile to eventually create |
| 41 |
?S: this directory while performing installation (with ~ substitution). |
| 42 |
?S:. |
| 43 |
?D:privlibexp='' |
| 44 |
?S:privlibexp: |
| 45 |
?S: This variable is the ~name expanded version of privlib, so that you |
| 46 |
?S: may use it directly in Makefiles or shell scripts. |
| 47 |
?S:. |
| 48 |
?D:installprivlib='' |
| 49 |
?S:installprivlib: |
| 50 |
?S: This variable is really the same as privlibexp but may differ on |
| 51 |
?S: those systems using AFS. For extra portability, only this variable |
| 52 |
?S: should be used in makefiles. |
| 53 |
?S:. |
| 54 |
?C:PRIVLIB: |
| 55 |
?C: This symbol contains the name of the private library for this package. |
| 56 |
?C: The library is private in the sense that it needn't be in anyone's |
| 57 |
?C: execution path, but it should be accessible by the world. The program |
| 58 |
?C: should be prepared to do ~ expansion. |
| 59 |
?C:. |
| 60 |
?C:PRIVLIB_EXP: |
| 61 |
?C: This symbol contains the ~name expanded version of PRIVLIB, to be used |
| 62 |
?C: in programs that are not prepared to deal with ~ expansion at run-time. |
| 63 |
?C:. |
| 64 |
?H:#define PRIVLIB "$privlib" /**/ |
| 65 |
?H:#define PRIVLIB_EXP "$privlibexp" /**/ |
| 66 |
?H:. |
| 67 |
?LINT:change prefixvar |
| 68 |
?LINT:set installprivlib |
| 69 |
?LINT:set privlib |
| 70 |
?LINT:set privlibexp |
| 71 |
: determine where private library files go |
| 72 |
: Usual default is /usr/local/lib/perl5/$version. |
| 73 |
: Also allow things like /opt/perl/lib/$version, since |
| 74 |
: /opt/perl/lib/perl5... would be redundant. |
| 75 |
: The default "style" setting is made in installstyle.U |
| 76 |
case "$installstyle" in |
| 77 |
*lib/perl5*) set dflt privlib lib/$package/$version ;; |
| 78 |
*) set dflt privlib lib/$version ;; |
| 79 |
esac |
| 80 |
eval $prefixit |
| 81 |
$cat <<EOM |
| 82 |
|
| 83 |
There are some auxiliary files for $package that need to be put into a |
| 84 |
private library directory that is accessible by everyone. |
| 85 |
|
| 86 |
EOM |
| 87 |
?X: Force dependency on bin.U |
| 88 |
fn=$binexp |
| 89 |
fn=d~+ |
| 90 |
rp='Pathname where the private library files will reside?' |
| 91 |
. ./getfile |
| 92 |
prefixvar=privlib |
| 93 |
. ./setprefixvar |
| 94 |
|