diff options
author | ivan <ivan> | 2007-10-04 02:52:05 +0000 |
---|---|---|
committer | ivan <ivan> | 2007-10-04 02:52:05 +0000 |
commit | 003b2d1320abf9ec909f9bbabe7737328fe8fcb2 (patch) | |
tree | c8a6e3358fa9eca2ec4ce462b50f7c64681baeec /bin | |
parent | 74c409c496b98e5573b784858b931afb01da8b16 (diff) |
wikify individual files
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/pod2x | 25 |
1 files changed, 16 insertions, 9 deletions
@@ -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"; |