X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=blobdiff_plain;f=script%2Fcatalyst.pl;h=c25e38e6f7a9ed6a074ae07109d1e2c6a27d0f88;hp=85d30c9e73dc878d4de4fc93130a73ffe0ca3b68;hb=4f9ca6ed6c11d894fe2054447afb3f5777d337c3;hpb=b4b01a8af03edee28ae4d64b054dea6ea51fb511 diff --git a/script/catalyst.pl b/script/catalyst.pl index 85d30c9..c25e38e 100755 --- a/script/catalyst.pl +++ b/script/catalyst.pl @@ -3,6 +3,21 @@ use strict; use Getopt::Long; use Pod::Usage; +eval " use Catalyst::Devel 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;