From f9dd0e9b0833162369c40713fa721ca2ad518cb8 Mon Sep 17 00:00:00 2001 From: "Christopher J. Madsen" Date: Fri, 29 Jun 2012 18:29:29 -0500 Subject: [PATCH] Call FIXIN on ack-standalone On Windows, this will create ack-standalone.bat On Unix, it does nothing because ack-standalone has "#!/usr/bin/env perl" instead of "#!/usr/bin/perl" --- .gitignore | 1 + Makefile.PL | 7 +++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 2a7f0338..a88ae69f 100644 --- a/.gitignore +++ b/.gitignore @@ -9,5 +9,6 @@ MYMETA.* tags opts.coverage ack-standalone +ack-standalone.bat stderr.log stdout.log diff --git a/Makefile.PL b/Makefile.PL index ba76272a..a6654fec 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -70,7 +70,9 @@ sub MY::test { } sub MY::postamble { - my $file_next_filename = qx(perldoc -l File::Next); + # was this next line used for something??? + # my $file_next_filename = qx(perldoc -l File::Next); + my $postamble = sprintf(<<'MAKE_FRAG', $debug_mode); ACK = ack ACK_STANDALONE = ack-standalone @@ -109,7 +111,8 @@ critic: $(ACK_STANDALONE) : $(ACK) $(ALL_PM) squash Makefile $(PERL) squash %s $(ACK) File::Next $(ALL_PM) > $(ACK_STANDALONE) - $(CHMOD) 0755 $(ACK_STANDALONE) + $(FIXIN) $(ACK_STANDALONE) + -$(NOECHO) $(CHMOD) $(PERM_RWX) $(ACK_STANDALONE) $(PERL_T) -c $(ACK_STANDALONE) bininst : $(ACK)