X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=blobdiff_plain;f=script%2Fcatalyst.pl;h=83c4eb75b84def2f45070d6de7e306b322d59697;hp=85d30c9e73dc878d4de4fc93130a73ffe0ca3b68;hb=b3c640cce0888c99072a7c18de983e075407a493;hpb=b4b01a8af03edee28ae4d64b054dea6ea51fb511 diff --git a/script/catalyst.pl b/script/catalyst.pl index 85d30c9..83c4eb7 100755 --- a/script/catalyst.pl +++ b/script/catalyst.pl @@ -3,7 +3,20 @@ use strict; use Getopt::Long; use Pod::Usage; -use Catalyst::Helper; +eval " use Catalyst::Helper 1.0; "; + +if ($@) { + die <new( { - '.newfiles' => !$force, - 'makefile' => $makefile, - 'scripts' => $scripts, - 'short' => $short, -} ); +my $helper = Catalyst::Helper->new( + { + '.newfiles' => !$force, + 'makefile' => $makefile, + 'scripts' => $scripts, + 'short' => $short, + } +); pod2usage(1) unless $helper->mk_app( $ARGV[0] ); 1;