File: install-nomake

package info (click to toggle)
libnet-ldap-perl 1%3A0.4400-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 1,484 kB
  • sloc: perl: 13,645; sh: 16; makefile: 2
file content (37 lines) | stat: -rwxr-xr-x 863 bytes parent folder | download | duplicates (9)
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
#!/bin/sh
#
# This script is included in this distribution for the benefit
# of those users who cannot use MakeMaker and make to install.
# Run this script with
# 
#   perl install-nomake [-s <directory>]
# 
#   -s Install into this directory instead of the system site_lib
#      (This directory must already exist)
# 

eval 'exec perl -x -S $0 ${1+"$@"}'
  if $running_under_some_shell;

#! -*- perl -*-

use Config;
use File::Spec;
use Getopt::Long;
use ExtUtils::Install qw(install);

my $sitelib = $Config{'sitelibexp'};

GetOptions(
  'sitelib=s' => \$sitelib
);

die "$sitelib is not a directory: $!"
  unless -d $sitelib;

my $src = File::Spec->catdir(File::Spec->curdir, 'lib');

die "This script must be run from the perl-ldap distribution directory: $!\n"
  unless -f File::Spec->catfile($src, qw(Net LDAP.pm));

install( { $src => $sitelib }, 1,0,0);