Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 32 lines (26 sloc) 704 Bytes
use inc::Module::Install;
name 'mha4mysql-node';
version_from 'lib/MHA/NodeConst.pm';
requires 'DBI';
requires 'DBD::mysql';
license 'GPL v2';
author 'Yoshinori Matsunobu <Yoshinori.Matsunobu@gmail.com>';
if ($ENV{REWRITE_SHEBANG}) {
mkdir 'xbin';
for my $bin (glob 'bin/*') {
(my $xbin = $bin) =~ s{^bin/}{xbin/};
open my $in, '<', $bin or die $!;
open my $out, '>', $xbin or die $!;
while (<$in>) {
s|^#!/usr/bin/env perl|#!perl|; # so MakeMaker can fix it
print $out $_;
}
close $in;
close $out;
}
install_script(glob 'xbin/*');
} else {
install_script(glob 'bin/*');
}
auto_install;
WriteAll;