Skip to content

Commit

Permalink
Add Makefile.PL --author option, and use $^X instead of shebang in Ma…
Browse files Browse the repository at this point in the history
…kefile.PL.
  • Loading branch information
gfx committed Feb 27, 2010
1 parent 5af346c commit 404123e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions 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'
Expand Down

0 comments on commit 404123e

Please sign in to comment.