| 1 |
?RCS: $Id: installprefix.U,v 1.1 1999/07/08 18:32:57 doughera Exp doughera $ |
| 2 |
?RCS: |
| 3 |
?RCS: Copyright (c) 1999 Andy Dougherty |
| 4 |
?RCS: |
| 5 |
?RCS: You may redistribute only under the terms of the Artistic License, |
| 6 |
?RCS: as specified in the README file that comes with the distribution. |
| 7 |
?RCS: You may reuse parts of this distribution only within the terms of |
| 8 |
?RCS: that same Artistic License; a copy of which may be found at the root |
| 9 |
?RCS: of the source tree for dist 3.0. |
| 10 |
?RCS: |
| 11 |
?RCS: Original Author: Andy Dougherty <[email protected]> |
| 12 |
?RCS: |
| 13 |
?RCS: $Log: installprefix.U,v $ |
| 14 |
?RCS: Revision 1.1 1999/07/08 18:32:57 doughera |
| 15 |
?RCS: Initial revision |
| 16 |
?RCS: |
| 17 |
?RCS: |
| 18 |
?MAKE:installprefix installprefixexp: Getfile Loc \ |
| 19 |
Oldconfig afs cat package prefix |
| 20 |
?MAKE: -pick add $@ %< |
| 21 |
?S:installprefix: |
| 22 |
?S: This variable holds the name of the directory below which |
| 23 |
?S: "make install" will install the package. For most users, this |
| 24 |
?S: is the same as prefix. However, it is useful for |
| 25 |
?S: installing the software into a different (usually temporary) |
| 26 |
?S: location after which it can be bundled up and moved somehow |
| 27 |
?S: to the final location specified by prefix. |
| 28 |
?S:. |
| 29 |
?S:installprefixexp: |
| 30 |
?S: This variable holds the full absolute path of installprefix |
| 31 |
?S: with all ~-expansion done. |
| 32 |
?S:. |
| 33 |
: determine installation prefix for where package is to be installed. |
| 34 |
if $afs; then |
| 35 |
$cat <<EOM |
| 36 |
|
| 37 |
Since you are running AFS, I need to distinguish the directory in which |
| 38 |
files will reside from the directory in which they are installed (and from |
| 39 |
which they are presumably copied to the former directory by occult means). |
| 40 |
|
| 41 |
EOM |
| 42 |
case "$installprefix" in |
| 43 |
'') dflt=`echo $prefix | sed 's#^/afs/#/afs/.#'`;; |
| 44 |
*) dflt="$installprefix";; |
| 45 |
esac |
| 46 |
else |
| 47 |
$cat <<EOM |
| 48 |
|
| 49 |
In some special cases, particularly when building $package for distribution, |
| 50 |
it is convenient to distinguish the directory in which files should be |
| 51 |
installed from the directory ($prefix) in which they will |
| 52 |
eventually reside. For most users, these two directories are the same. |
| 53 |
|
| 54 |
EOM |
| 55 |
case "$installprefix" in |
| 56 |
'') dflt=$prefix ;; |
| 57 |
*) dflt=$installprefix;; |
| 58 |
esac |
| 59 |
fi |
| 60 |
fn=d~ |
| 61 |
rp='What installation prefix should I use for installing files?' |
| 62 |
. ./getfile |
| 63 |
installprefix="$ans" |
| 64 |
installprefixexp="$ansexp" |
| 65 |
|