correct perl pathes for helper generated scripts
Sebastian Riedel [Sat, 12 Mar 2005 17:54:22 +0000 (17:54 +0000)]
Changes
lib/Catalyst.pm
lib/Catalyst/Helper.pm

diff --git a/Changes b/Changes
index 3bf4097..f33a5c3 100644 (file)
--- 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)
index 07c21f3..10a4c99 100644 (file)
@@ -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<sri@oook.de>
 =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
 
index 633f7fe..700f4af 100644 (file)
@@ -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;