X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=script%2Fcatalyst.pl;h=188c708e6dd1f4f38ae86cea4acd3b7f2e7180a0;hb=3b6a1db18241beccccb477ffd5f3abeaaff35418;hp=85d30c9e73dc878d4de4fc93130a73ffe0ca3b68;hpb=b4b01a8af03edee28ae4d64b054dea6ea51fb511;p=catagits%2FCatalyst-Runtime.git diff --git a/script/catalyst.pl b/script/catalyst.pl index 85d30c9..188c708 100755 --- a/script/catalyst.pl +++ b/script/catalyst.pl @@ -3,6 +3,23 @@ use strict; use Getopt::Long; use Pod::Usage; +BEGIN { +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;