]> ruin.nu Git - ndwebbie.git/blobdiff - script/ndweb_cgi.pl
Merge updates from new catalyst.pl
[ndwebbie.git] / script / ndweb_cgi.pl
index a008db605e1c42e44fa15071a6ffab0d52d7aa2d..6cb069b2a32e6ae0b4fcc2c3e07c3ee3443f9ef6 100755 (executable)
@@ -1,14 +1,7 @@
 #!/usr/bin/env perl
 
-BEGIN { $ENV{CATALYST_ENGINE} ||= 'CGI' }
-
-use strict;
-use warnings;
-use FindBin;
-use lib "$FindBin::Bin/../lib";
-use NDWeb;
-
-NDWeb->run;
+use Catalyst::ScriptRunner;
+Catalyst::ScriptRunner->run('NDWeb', 'CGI');
 
 1;
 
@@ -30,8 +23,8 @@ Catalyst Contributors, see Catalyst.pm
 
 =head1 COPYRIGHT
 
-
 This library is free software. You can redistribute it and/or modify
 it under the same terms as Perl itself.
 
 =cut
+