X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=bin%2Fpod2x;h=741b78460413a39d9fc094246e5703a21830468b;hb=49db59d3a1fad43b35295d89c71141b79c70c1de;hp=91dd8d6563a634f0fe34f74e8991cbbfe6b87d82;hpb=614af30dfb1d4b24d42ca2e3eed66784038ec398;p=freeside.git diff --git a/bin/pod2x b/bin/pod2x index 91dd8d656..741b78460 100755 --- a/bin/pod2x +++ b/bin/pod2x @@ -34,6 +34,7 @@ foreach my $dir ( FS/part_event FS/part_event/Condition FS/part_event/Action FS/ClientAPI FS/Cron FS/Misc FS/Report FS/Report/Table FS/TicketSystem FS/UI + FS/SelfService ) ) { -d $dir or mkdir $dir; @@ -67,15 +68,22 @@ my $mvs = WWW::Mediawiki::Client->new( $mvs->do_login; -foreach my $file ( - glob("$site_perl/*.pm"), - glob("$site_perl/*/*.pm"), - glob("$site_perl/*/*/*.pm"), - glob("$site_perl/*/*/*/*.pm"), - glob("$site_perl/bin/*.pod"), - glob("./fs_selfservice/FS-SelfService/*.pm"), - glob("./fs_selfservice/FS-SelfService/*/*.pm"), -) { +my @files; +if ( @ARGV ) { + @files = @ARGV; +} else { + @files = + glob("$site_perl/*.pm"), + glob("$site_perl/*/*.pm"), + glob("$site_perl/*/*/*.pm"), + glob("$site_perl/*/*/*/*.pm"), + glob("$site_perl/bin/*.pod"), + glob("./fs_selfservice/FS-SelfService/*.pm"), + glob("./fs_selfservice/FS-SelfService/*/*.pm"), + ; +} + +foreach my $file (@files) { next if $file =~ /(^|\/)blib\//; next if $file =~ /(^|\/)CVS\//; #$file =~ /\/([\w\-]+)\.pm$/ or die "oops file $file";