diff options
author | Graham Barr <gbarr@pobox.com> | 2001-10-26 15:02:31 +0000 |
---|---|---|
committer | Graham Barr <gbarr@pobox.com> | 2001-10-26 15:02:31 +0000 |
commit | 4e1bbf4b28512c6de59225e1b63e05dcbefd78e0 (patch) | |
tree | 8ea91d9d5f8d74159a69a048c04f0f30eac47b52 | |
parent | 85fee191d6003659f0c16e118bba4b3bc2312cfe (diff) | |
download | perl-libnet-4e1bbf4b28512c6de59225e1b63e05dcbefd78e0.tar.gz |
Add install-nomake to install libnet on machines that do not
have make available
-rw-r--r-- | MANIFEST | 1 | ||||
-rwxr-xr-x | install-nomake | 37 |
2 files changed, 38 insertions, 0 deletions
@@ -27,6 +27,7 @@ demos/nntp.mirror demos/pop3 demos/smtp.self demos/time +install-nomake t/ftp.t t/hostname.t t/nntp.t diff --git a/install-nomake b/install-nomake new file mode 100755 index 0000000..f5e8c21 --- /dev/null +++ b/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->curdir; + +die "This script must be run from the libnet distribution directory: $!\n" + unless -f File::Spec->catfile($src, qw(Net FTP.pm)); + +install( { $src => $sitelib }, 1,0,0); |