Permalink
Browse files

Add panda-cpanize

  • Loading branch information...
1 parent 9f6e824 commit 8bdbe7baea9545445e9b0d690e206c9b9d77bc5b @tadzik committed May 24, 2013
Showing with 21 additions and 0 deletions.
  1. +21 −0 bin/panda-cpanize
View
@@ -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;
+}

0 comments on commit 8bdbe7b

Please sign in to comment.