From: ivan Date: Thu, 4 Oct 2007 02:52:05 +0000 (+0000) Subject: wikify individual files X-Git-Tag: TRIXBOX_2_6~309 X-Git-Url: http://git.freeside.biz/gitweb/?a=commitdiff_plain;h=003b2d1320abf9ec909f9bbabe7737328fe8fcb2;p=freeside.git wikify individual files --- diff --git a/bin/pod2x b/bin/pod2x index 329e49192..741b78460 100755 --- a/bin/pod2x +++ b/bin/pod2x @@ -68,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";