Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add panda-cpanize

  • Loading branch information...
commit 8bdbe7baea9545445e9b0d690e206c9b9d77bc5b 1 parent 9f6e824
@tadzik authored
Showing with 21 additions and 0 deletions.
  1. +21 −0 bin/panda-cpanize
View
21 bin/panda-cpanize
@@ -0,0 +1,21 @@
+#!/usr/bin/env perl6
+
+open('Build.PL', :w).close;
+
+# it needs to be Perl 5, 'cos cpanm runs 'perl Build' rather than './Build' for some reason
+my $build_tmpl = q[
+ my $arg = shift;
+
+ if ($arg eq 'test') {
+ system "panda-test"
+ } elsif ($arg eq 'install') {
+ system "panda-install";
+ } else {
+ system "panda-build";
+ }
+];
+
+given open('Build', :w) {
+ .say: $build_tmpl;
+ .close;
+}
Please sign in to comment.
Something went wrong with that request. Please try again.