| 1 |
#!/bin/sh |
| 2 |
###################################################################### |
| 3 |
## This simple shell script is a replacement for the `make install' |
| 4 |
## stage of the standard perl module installation sequence. If you |
| 5 |
## are installing as a private user, you do not have write access to |
| 6 |
## the system level directories where perl wants to install modules. |
| 7 |
## It is possible to override these locations from the command line, |
| 8 |
## but that requires a large number of awkward command line |
| 9 |
## arguments. In this script, I have attempted to make good guesses |
| 10 |
## for where things should be installed. These guesses are: |
| 11 |
## |
| 12 |
## modules: install to the location in the PERL5LIB or PERLLIB |
| 13 |
## environment variable |
| 14 |
## scripts: $HOME/bin -- a reasonable guess for where a normal user |
| 15 |
## might keep personal programs and scripts |
| 16 |
## man pages: into this directory -- this is roughly equivalent to |
| 17 |
## not installing the man pages. most normal users do |
| 18 |
## not keep personal man pages |
| 19 |
## architecture dependent files: |
| 20 |
## the auto/ directory under PERL5LIB or PERLLIB |
| 21 |
## |
| 22 |
## If this doesn't work for you, just edit this file as appropriate. |
| 23 |
###################################################################### |
| 24 |
|
| 25 |
|
| 26 |
if [ $PERL5LIB ] |
| 27 |
then |
| 28 |
PLIB=$PERL5LIB |
| 29 |
elif [ $PERLLIB ] |
| 30 |
then |
| 31 |
PLIB=$PERLLIB |
| 32 |
else |
| 33 |
echo "Neither PERL5LIB nor PERLLIB are set. Private installation halting." |
| 34 |
exit |
| 35 |
fi |
| 36 |
|
| 37 |
./Build --install_path lib=$PLIB \ |
| 38 |
--install_path arch=$PLIB \ |
| 39 |
--install_path bin=$HOME/bin \ |
| 40 |
--install_path script=$HOME/bin \ |
| 41 |
--install_path bindoc=`pwd`/man/ \ |
| 42 |
--install_path libdoc=`pwd`/man/ \ |
| 43 |
install |