summaryrefslogtreecommitdiff
path: root/script/bookmarks_server.pl
diff options
context:
space:
mode:
Diffstat (limited to 'script/bookmarks_server.pl')
-rwxr-xr-xscript/bookmarks_server.pl57
1 files changed, 57 insertions, 0 deletions
diff --git a/script/bookmarks_server.pl b/script/bookmarks_server.pl
new file mode 100755
index 0000000..ac117e0
--- /dev/null
+++ b/script/bookmarks_server.pl
@@ -0,0 +1,57 @@
+#!/usr/bin/perl -w
+
+BEGIN {
+ $ENV{CATALYST_ENGINE} ||= 'HTTP';
+ $ENV{CATALYST_SCRIPT_GEN} = 4;
+}
+
+use strict;
+use Getopt::Long;
+use Pod::Usage;
+use FindBin;
+use lib "$FindBin::Bin/../lib";
+use Bookmarks;
+
+my $help = 0;
+my $port = 3000;
+
+GetOptions( 'help|?' => \$help, 'port=s' => \$port );
+
+pod2usage(1) if $help;
+
+Bookmarks->run($port);
+
+1;
+
+=head1 NAME
+
+bookmarks_server.pl - Catalyst Testserver
+
+=head1 SYNOPSIS
+
+bookmarks_server.pl [options]
+
+ Options:
+ -? -help display this help and exits
+ -p -port port (defaults to 3000)
+
+ See also:
+ perldoc Catalyst::Manual
+ perldoc Catalyst::Manual::Intro
+
+=head1 DESCRIPTION
+
+Run a Catalyst Testserver for this application.
+
+=head1 AUTHOR
+
+Sebastian Riedel, C<sri@oook.de>
+
+=head1 COPYRIGHT
+
+Copyright 2004 Sebastian Riedel. All rights reserved.
+
+This library is free software. You can redistribute it and/or modify
+it under the same terms as perl itself.
+
+=cut