Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the ack CPAN distribution.

Maintainer(s)' notes

ack's issues are tracked at https://github.com/petdance/ack2

Report information
The Basics
Id: 22958
Status: resolved
Priority: 0/
Queue: ack

People
Owner: Nobody in particular
Requestors: jerry.gay [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: [PATCH] make File::Next location retrieval cross-platform
Date: Fri, 10 Nov 2006 13:40:00 -0800
To: bug-ack [...] rt.cpan.org
From: "jerry gay" <jerry.gay [...] gmail.com>
this is a patch against svn r66, in order to get the location of File::Next in a cross-platform manner. chip++ for the sanity check. ~jerry Index: Makefile.PL =================================================================== --- Makefile.PL (revision 66) +++ Makefile.PL (working copy) @@ -24,7 +24,7 @@ ); sub MY::postamble { - return <<'MAKE_FRAG'; + my $postamble = <<'MAKE_FRAG'; .PHONY: tags critic tags: @@ -38,7 +38,7 @@ ACK = ack APP_ACK_PM = Ack.pm -FILE_NEXT_PM = $(shell perldoc -l File::Next) +FILE_NEXT_PM = #MODULE_FILENAME# CRUSH = crush crush: $(ACK) $(APP_ACK_PM) $(FILE_NEXT_PM) @@ -47,5 +47,9 @@ chmod +x $(CRUSH) MAKE_FRAG + + my $module_filename = qx(perldoc -l File::Next); + $postamble =~ s/#MODULE_FILENAME#/$module_filename/; + return $postamble; } 1;
Done.