From 404123e2797b768ca0fd5b6a9ed2558d6b2fa465 Mon Sep 17 00:00:00 2001 From: gfx Date: Sat, 27 Feb 2010 14:43:19 +0900 Subject: [PATCH] Add Makefile.PL --author option, and use $^X instead of shebang in Makefile.PL. --- Makefile.PL | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile.PL b/Makefile.PL index 798fbb631..76693d977 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -1,10 +1,10 @@ -my $author = -d '.git' && `git remote -v` =~ /git\@github/; +my $author = ((grep{ $_ eq '--author' } @ARGV) or -d '.git' && `git remote -v` =~ /git\@github/); print STDERR "Running as an author mode!\n" if $author; # Author: perl Makefile.PL packs 'script/cpanm.PL' -> 'cpanm' if ($author) { shift @ARGV; - system "script/build.PL" and die $?; + system $^X, "script/build.PL" and die $?; } # perl Makefile.PL (from git repo) copies 'cpanm' -> 'bin/cpanm'