| 1 |
?RCS: $Id: instubperl.U,v 1.1 1999/07/08 18:32:57 doughera Exp doughera $ |
| 2 |
?RCS: |
| 3 |
?RCS: Copyright (c) 1999, Jarkko Hietaniemi |
| 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 |
?MAKE:installusrbinperl: installbin cat bin Myread Setvar test Devel |
| 12 |
?MAKE: -pick add $@ %< |
| 13 |
?LINT:set installusrbinperl |
| 14 |
?Y:TOP |
| 15 |
?S:installusrbinperl: |
| 16 |
?S: This variable tells whether Perl should be installed also as |
| 17 |
?S: /usr/bin/perl in addition to |
| 18 |
?S: $installbin/perl |
| 19 |
?S:. |
| 20 |
?C:INSTALL_USR_BIN_PERL: |
| 21 |
?C: This symbol, if defined, indicates that Perl is to be installed |
| 22 |
?C: also as /usr/bin/perl. |
| 23 |
?C:. |
| 24 |
?H:#$installusrbinperl INSTALL_USR_BIN_PERL /**/ |
| 25 |
?H:. |
| 26 |
: determine whether to install perl also as /usr/bin/perl |
| 27 |
|
| 28 |
echo " " |
| 29 |
if $test -d /usr/bin -a "X$installbin" != X/usr/bin; then |
| 30 |
$cat <<EOM |
| 31 |
Many scripts expect perl to be installed as /usr/bin/perl. |
| 32 |
|
| 33 |
If you want to, I can install the perl you are about to compile |
| 34 |
as /usr/bin/perl (in addition to $bin/perl). |
| 35 |
EOM |
| 36 |
if test -f /usr/bin/perl; then |
| 37 |
$cat <<EOM |
| 38 |
|
| 39 |
However, please note that because you already have a /usr/bin/perl, |
| 40 |
overwriting that with a new Perl would very probably cause problems. |
| 41 |
Therefore I'm assuming you don't want to do that (unless you insist). |
| 42 |
|
| 43 |
EOM |
| 44 |
case "$installusrbinperl" in |
| 45 |
"$define"|[yY]*) dflt='y';; |
| 46 |
*) dflt='n';; |
| 47 |
esac |
| 48 |
else |
| 49 |
$cat <<EOM |
| 50 |
|
| 51 |
Since you don't have a /usr/bin/perl I'm assuming creating one is okay. |
| 52 |
|
| 53 |
EOM |
| 54 |
case "$installusrbinperl" in |
| 55 |
"$undef"|[nN]*) dflt='n';; |
| 56 |
*) dflt='y';; |
| 57 |
esac |
| 58 |
fi |
| 59 |
rp="Do you want to install perl as /usr/bin/perl?" |
| 60 |
. ./myread |
| 61 |
case "$ans" in |
| 62 |
[yY]*) val="$define";; |
| 63 |
*) val="$undef" ;; |
| 64 |
esac |
| 65 |
else |
| 66 |
val="$undef" |
| 67 |
fi |
| 68 |
set installusrbinperl |
| 69 |
eval $setvar |
| 70 |
|