| 1 | #!/bin/sh |
| 2 | ###################################################################### |
| 3 | ## This simple shell script is a replacement for the `./Build 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 | # what these arguments mean |
| 38 | #--------------------------- |
| 39 | # INSTALLDIRS : this is a private install |
| 40 | # INSTALLPRIVLIB : modules location |
| 41 | # INSTALLSCRIPT : scripts location |
| 42 | # INSTALLMAN1DIR : volume 1 man page location |
| 43 | # INSTALLMAN3DIR : volume 3 man page location |
| 44 | # INSTALLARCHLIB : architecture dependent files location |
| 45 | |
| 46 | ##--- DEPRECATED --------------------------- |
| 47 | # make -k INSTALLDIRS=perl \ |
| 48 | # INSTALLPRIVLIB=$PLIB \ |
| 49 | # INSTALLSCRIPT=$HOME/bin \ |
| 50 | # INSTALLBIN=$HOME/bin \ |
| 51 | # INSTALLMAN1DIR=`pwd`/man/man1 \ |
| 52 | # INSTALLMAN3DIR=`pwd`/man/man3 \ |
| 53 | # INSTALLARCHLIB=$PLIB \ |
| 54 | # install |
| 55 | ##--- DEPRECATED --------------------------- |
| 56 | |
| 57 | ./Build --install_path lib=$PLIB \ |
| 58 | --install_path arch=$PLIB \ |
| 59 | --install_path bin=$HOME/bin \ |
| 60 | --install_path script=$HOME/bin \ |
| 61 | --install_path bindoc=`pwd`/man/ \ |
| 62 | --install_path libdoc=`pwd`/man/ \ |
| 63 | install |