Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100755 37 lines (28 sloc) 0.863 kb
c21fdd95 » gbarr
2001-07-06 Add install-nomake for those who don't have make
1 #!/bin/sh
2 #
3 # This script is included in this distribution for the benefit
4 # of those users who cannot use MakeMaker and make to install.
5 # Run this script with
6 #
7 # perl install-nomake [-s <directory>]
8 #
9 # -s Install into this directory instead of the system site_lib
10 # (This directory must already exist)
11 #
12
13 eval 'exec perl -x -S $0 ${1+"$@"}'
14 if $running_under_some_shell;
15
16 #! -*- perl -*-
17
18 use Config;
19 use File::Spec;
20 use Getopt::Long;
21 use ExtUtils::Install qw(install);
22
23 my $sitelib = $Config{'sitelibexp'};
24
25 GetOptions(
26 'sitelib=s' => \$sitelib
27 );
28
29 die "$sitelib is not a directory: $!"
30 unless -d $sitelib;
31
32 my $src = File::Spec->catdir(File::Spec->curdir, 'lib');
33
34 die "This script must be run from the perl-ldap distribution directory: $!\n"
35 unless -f File::Spec->catfile($src, qw(Net LDAP.pm));
36
37 install( { $src => $sitelib }, 1,0,0);
Something went wrong with that request. Please try again.