X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=blobdiff_plain;f=script%2Fcatalyst.pl;h=34a6f94f022d090be1e22590238822e35db8162d;hp=85d30c9e73dc878d4de4fc93130a73ffe0ca3b68;hb=34d28dfd33574ce30aca69fb8700b61111d97b92;hpb=9e800f69753d858a230a0c48effd43457b07d3cc diff --git a/script/catalyst.pl b/script/catalyst.pl index 85d30c9..34a6f94 100755 --- a/script/catalyst.pl +++ b/script/catalyst.pl @@ -3,7 +3,8 @@ use strict; use Getopt::Long; use Pod::Usage; -use Catalyst::Helper; +eval 'use Catalyst::Helper "1.0";'; +die "Please install Catalyst::Helper!\n" if $@; my $force = 0; my $help = 0; @@ -21,12 +22,14 @@ GetOptions( pod2usage(1) if ( $help || !$ARGV[0] ); -my $helper = Catalyst::Helper->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;