From: Sebastian Riedel Date: Sat, 12 Mar 2005 17:54:22 +0000 (+0000) Subject: correct perl pathes for helper generated scripts X-Git-Tag: 5.7099_04~1766 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=commitdiff_plain;h=f1d0b7ea31572758650de7a075852fce734e3b6b correct perl pathes for helper generated scripts --- diff --git a/Changes b/Changes index 3bf4097..f33a5c3 100644 --- a/Changes +++ b/Changes @@ -1,5 +1,8 @@ This file documents the revision history for Perl extension Catalyst. +4.25 Sat Mar 12 18:00:00 2005 + - correct perl pathes for helper generated scripts (Tatsuhiko Miyagawa) + 4.24 Sat Mar 12 01:00:00 2005 - updated cookbook example - fixed base for apache and https (Andrew Ruthven) diff --git a/lib/Catalyst.pm b/lib/Catalyst.pm index 07c21f3..10a4c99 100644 --- a/lib/Catalyst.pm +++ b/lib/Catalyst.pm @@ -7,7 +7,7 @@ use Catalyst::Log; __PACKAGE__->mk_classdata($_) for qw/_config log/; -our $VERSION = '4.24'; +our $VERSION = '4.25'; our @ISA; =head1 NAME @@ -198,8 +198,8 @@ Sebastian Riedel, C =head1 THANK YOU Andrew Ruthven, Danijel Milicevic, David Naughton, Gary Ashton Jones, -Jesse Sheidlower, Johan Lindstrom, Marcus Ramberg and all the others -who've helped. +Jesse Sheidlower, Johan Lindstrom, Marcus Ramberg, Tatsuhiko Miyagawa +and all the others who've helped. =head1 LICENSE diff --git a/lib/Catalyst/Helper.pm b/lib/Catalyst/Helper.pm index 633f7fe..700f4af 100644 --- a/lib/Catalyst/Helper.pm +++ b/lib/Catalyst/Helper.pm @@ -2,6 +2,7 @@ package Catalyst::Helper; use strict; use base 'Class::Accessor::Fast'; +use Config; use File::Spec; use File::Path; use IO::File; @@ -303,7 +304,7 @@ sub _mk_server { my $name = $self->{name}; my $script = $self->{script}; $self->mk_file( "$script\/server.pl", <<"EOF"); -#!/usr/bin/perl -w +$Config{startperl} -w use strict; use Getopt::Long; @@ -365,7 +366,7 @@ sub _mk_test { my $name = $self->{name}; my $script = $self->{script}; $self->mk_file( "$script/test.pl", <<"EOF"); -#!/usr/bin/perl -w +$Config{startperl} -w use strict; use Getopt::Long; @@ -431,7 +432,7 @@ sub _mk_create { my $name = $self->{name}; my $script = $self->{script}; $self->mk_file( "$script\/create.pl", <<"EOF"); -#!/usr/bin/perl -w +$Config{startperl} -w use strict; use Getopt::Long;