<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>bin/perl5i.plx</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -1,6 +1,8 @@
 .perlcriticrc
 .perltidyrc
+bin/perl5i.bat.PL
 bin/perl5i.c.PL
+bin/perl5i.plx
 Build.PL
 inc/MyBuild.pm
 INSTALL.SKIP
@@ -39,5 +41,5 @@ t/List-Util/sum.t
 t/modern_perl.t
 t/Module-Load.t
 t/time_compat.t
-t/y2038.t
 t/wrap.t
+t/y2038.t</diff>
      <filename>MANIFEST</filename>
    </modified>
    <modified>
      <diff>@@ -2,14 +2,14 @@ package MyBuild;
 
 use base 'Module::Build';
 
-# Override default 'build' action
+# Override default 'code' action
 # to allow compilation of perl5i.c
-sub ACTION_build {
+sub ACTION_code {
     my $self = shift;
 
     # This has to be run first so the PL files are run to generate
     # the C code for us to compile.
-    $self-&gt;SUPER::ACTION_build(@_);
+    $self-&gt;process_PL_files;
 
     if ( $self-&gt;is_windowsish ) {
         # Writing a C wrapper is too hard on Windows
@@ -33,8 +33,15 @@ sub ACTION_build {
         $self-&gt;add_to_cleanup($obj_file, $exe_file);
     }
     else {
-        warn &quot;WARNING: No C compiler available; perl5i executable will not be installed.\n&quot;;
+        # No C compiler, Unix style operating system.
+        # Just use the Perl wrapper.
+        File::Copy::copy(&quot;bin/perl5i.plx&quot;, &quot;bin/perl5i&quot;);
+
+        $self-&gt;script_files(&quot;bin/perl5i&quot;);
+        $self-&gt;add_to_cleanup(&quot;bin/perl5i&quot;);
     }
+
+    return $self-&gt;SUPER::ACTION_code;
 }
 
 </diff>
      <filename>inc/MyBuild.pm</filename>
    </modified>
    <modified>
      <diff>@@ -9,8 +9,9 @@ use File::Spec;
 use Test::More;
 
 my $perl5i;
+my $script_dir = File::Spec-&gt;catdir(&quot;blib&quot;, &quot;script&quot;);
 for my $wrapper (qw(perl5i perl5i.bat)) {
-    $perl5i = File::Spec-&gt;catfile(&quot;bin&quot;, $wrapper);
+    $perl5i = File::Spec-&gt;catfile($script_dir, $wrapper);
     last if -e $perl5i;
 }
 </diff>
      <filename>t/command_line_wrapper.t</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>a0852e024d4b5e33fb9264105584c9340c7b919f</id>
    </parent>
  </parents>
  <author>
    <name>Michael G. Schwern</name>
    <email>schwern@pobox.com</email>
  </author>
  <url>http://github.com/schwern/perl5i/commit/07e02becf1872c93ab4d3b9cd5d32bb8f0aba5aa</url>
  <id>07e02becf1872c93ab4d3b9cd5d32bb8f0aba5aa</id>
  <committed-date>2009-07-07T18:01:02-07:00</committed-date>
  <authored-date>2009-07-07T18:01:02-07:00</authored-date>
  <message>Add a Perl wrapper around perl5i so there's something when there's no C compiler.</message>
  <tree>9f0d6f47cb37462275b07289bac027a5bcbb11f1</tree>
  <committer>
    <name>Michael G. Schwern</name>
    <email>schwern@pobox.com</email>
  </committer>
</commit>
