X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=bin%2Fpod2x;h=6b7153f9676211a149d3b52b07069fbcf4c6c6dc;hb=443d72d3eb9d1a4c2d6db9562d185980d6fac541;hp=329e491923f8ac86eed0f95d3acfd9a8ab0a5b03;hpb=74c409c496b98e5573b784858b931afb01da8b16;p=freeside.git diff --git a/bin/pod2x b/bin/pod2x index 329e49192..6b7153f96 100755 --- a/bin/pod2x +++ b/bin/pod2x @@ -59,7 +59,7 @@ foreach my $file ( } my $mvs = WWW::Mediawiki::Client->new( - 'host' => 'www.sisd.com', + 'host' => 'www.freeside.biz', 'wiki_path' => 'mediawiki/index.php', 'username' => $mw_username, 'password' => $mw_password, @@ -68,15 +68,23 @@ 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";