]> ruin.nu Git - ndwebbie.git/blobdiff - script/ndweb_create.pl
Convert to catalyst 5.8
[ndwebbie.git] / script / ndweb_create.pl
index 35ca6a574b20c1791f6e301d0c1314feeae867ee..9293c49a5ba92cf0f4e35541a75097e7e50edb36 100755 (executable)
@@ -1,10 +1,22 @@
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
 
 use strict;
 use warnings;
 use Getopt::Long;
 use Pod::Usage;
-use Catalyst::Helper;
+eval "use Catalyst::Helper;";
+
+if ($@) {
+  die <<END;
+To use the Catalyst development tools including catalyst.pl and the
+generated script/myapp_create.pl you need Catalyst::Helper, which is
+part of the Catalyst-Devel distribution. Please install this via a
+vendor package or by running one of -
+
+  perl -MCPAN -e 'install Catalyst::Devel'
+  perl -MCPANPLUS -e 'install Catalyst::Devel'
+END
+}
 
 my $force = 0;
 my $mech  = 0;
@@ -39,7 +51,6 @@ ndweb_create.pl [options] model|view|controller name [helper] [options]
 
  Examples:
    ndweb_create.pl controller My::Controller
-   ndweb_create.pl controller My::Controller BindLex
    ndweb_create.pl -mechanize controller My::Controller
    ndweb_create.pl view My::View
    ndweb_create.pl view MyView TT
@@ -62,14 +73,13 @@ Existing component files are not overwritten.  If any of the component files
 to be created already exist the file will be written with a '.new' suffix.
 This behavior can be suppressed with the C<-force> option.
 
-=head1 AUTHOR
+=head1 AUTHORS
 
-Sebastian Riedel, C<sri@oook.de>
-Maintained by the Catalyst Core Team.
+Catalyst Contributors, see Catalyst.pm
 
 =head1 COPYRIGHT
 
-This library is free software, you can redistribute it and/or modify
+This library is free software. You can redistribute it and/or modify
 it under the same terms as Perl itself.
 
 =cut