Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add install-nomake for those who don't have make

  • Loading branch information...
commit c21fdd958ed0a8390effb78b653423969bd8abf7 1 parent 5a237be
@gbarr gbarr authored
Showing with 38 additions and 0 deletions.
  1. +1 −0  MANIFEST
  2. +37 −0 install-nomake
View
1  MANIFEST
@@ -67,6 +67,7 @@ htdocs/Net/LDAP/Util.html
htdocs/Net/LDAPS.html
htdocs/index.html
htdocs/index.xml
+install-nomake
lib/Authen/SASL.pm
lib/Authen/SASL.pod
lib/Authen/SASL/CRAM_MD5.pm
View
37 install-nomake
@@ -0,0 +1,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);
Please sign in to comment.
Something went wrong with that request. Please try again.