Skip to content

Commit

Permalink
Call FIXIN on ack-standalone
Browse files Browse the repository at this point in the history
  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
madsen committed Jul 2, 2012
1 parent 59b9284 commit f9dd0e9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -9,5 +9,6 @@ MYMETA.*
tags
opts.coverage
ack-standalone
ack-standalone.bat
stderr.log
stdout.log
7 changes: 5 additions & 2 deletions Makefile.PL
Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit f9dd0e9

Please sign in to comment.