File: private-install

package info (click to toggle)
horae 071~svn536-1
  • links: PTS
  • area: contrib
  • in suites: wheezy
  • size: 12,996 kB
  • sloc: perl: 67,215; lisp: 744; sh: 78; makefile: 76; ansic: 35
file content (63 lines) | stat: -rwxr-xr-x 2,384 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#!/bin/sh
######################################################################
## This simple shell script is a replacement for the `./Build install'
## stage of the standard perl module installation sequence.  If you
## are installing as a private user, you do not have write access to
## the system level directories where perl wants to install modules.
## It is possible to override these locations from the command line,
## but that requires a large number of awkward command line
## arguments.  In this script, I have attempted to make good guesses
## for where things should be installed.  These guesses are:
##
##   modules:   install to the location in the PERL5LIB or PERLLIB
##              environment variable
##   scripts:   $HOME/bin -- a reasonable guess for where a normal user
##              might keep personal programs and scripts
##   man pages: into this directory -- this is roughly equivalent to
##              not installing the man pages.  most normal users do
##              not keep personal man pages
##   architecture dependent files:
##              the auto/ directory under PERL5LIB or PERLLIB
##
##  If this doesn't work for you, just edit this file as appropriate.
######################################################################


if [ $PERL5LIB ]
then
  PLIB=$PERL5LIB
elif [ $PERLLIB ]
then
  PLIB=$PERLLIB
else
  echo "Neither PERL5LIB nor PERLLIB are set.  Private installation halting."
  exit
fi

# what these arguments mean
#---------------------------
# INSTALLDIRS    : this is a private install
# INSTALLPRIVLIB : modules location
# INSTALLSCRIPT  : scripts location
# INSTALLMAN1DIR : volume 1 man page location
# INSTALLMAN3DIR : volume 3 man page location
# INSTALLARCHLIB : architecture dependent files location

##--- DEPRECATED ---------------------------
# make -k INSTALLDIRS=perl \
#         INSTALLPRIVLIB=$PLIB \
#         INSTALLSCRIPT=$HOME/bin \
#         INSTALLBIN=$HOME/bin \
#         INSTALLMAN1DIR=`pwd`/man/man1 \
#         INSTALLMAN3DIR=`pwd`/man/man3 \
#         INSTALLARCHLIB=$PLIB \
#         install
##--- DEPRECATED ---------------------------

./Build --install_path lib=$PLIB \
        --install_path arch=$PLIB \
        --install_path bin=$HOME/bin \
        --install_path script=$HOME/bin \
        --install_path bindoc=`pwd`/man/ \
        --install_path libdoc=`pwd`/man/ \
        install