Permalink
Browse files

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"
  • Loading branch information...
1 parent 59b9284 commit f9dd0e9b0833162369c40713fa721ca2ad518cb8 @madsen madsen committed Jun 29, 2012
Showing with 6 additions and 2 deletions.
  1. +1 −0 .gitignore
  2. +5 −2 Makefile.PL
View
@@ -9,5 +9,6 @@ MYMETA.*
tags
opts.coverage
ack-standalone
+ack-standalone.bat
stderr.log
stdout.log
View
@@ -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)

0 comments on commit f9dd0e9

Please sign in to comment.