root/websites/coderepos.org/feedmaker/script/feedmaker_create.pl @ 9945

Revision 9911, 1.1 kB (checked in by yappo, 7 years ago)

websites/coderepos.org: import

  • Property svn:executable set to *
Line 
1#!/usr/bin/perl -w
2
3use strict;
4use File::Spec;
5use FindBin;
6use Getopt::Long;
7use Pod::Usage;
8
9use Soozy::Helper;
10
11my $force = 0;
12my $help  = 0;
13
14GetOptions(
15    'force'    => \$force,
16    'help|?'   => \$help
17);
18
19pod2usage(1) if ($help || !$ARGV[0]);
20
21my $h = Soozy::Helper->new({ force => $force, root => File::Spec->catfile($FindBin::Bin, '..')});
22
23pod2usage(1) unless $h->install_component('FeedMaker', @ARGV);
24
251;
26=head1 NAME
27
28feedmaker_create.pl - Create a new Soozy Component
29
30=head1 SYNOPSIS
31
32feedmaker_create.pl [options] C name
33
34feedmaker_create.pl [options] M|V|C name helper [options]
35
36feedmaker_create.pl [options] M|V|C name :MyApp::Helper::Foo [options]
37
38feedmaker_create.pl [options] :MyApp::Helper::Foo [options]
39
40  Options:
41   -force        overwrite files
42   -help         display this help and exits
43
44 Examples:
45   feedmaker_create.pl C Search
46   feedmaker_create.pl V MyTT TT
47   feedmaker_create.pl M MyDB DBIC::Schema Schema::MyDB dbi:SQLite:/tmp/my.db
48
49=head1 INSPIRE BY
50
51L<Catalyst>
52
53=head1 AUTHOR
54
55Kazuhiro Osawa
56
57=head1 LICENSE
58
59This library is free software, you can redistribute it and/or modify it under
60the same terms as Perl itself.
61
62=cut
Note: See TracBrowser for help on using the browser.