Files
oddmuse/example-maintenance.pl

11 lines
356 B
Perl
Raw Normal View History

2003-12-24 04:24:52 +00:00
#!/usr/bin/perl
$dir = "/org/org.emacswiki/htdocs";
opendir(DIR, $dir) || die "can't opendir $dir: $!";
@names = grep { /^[a-z]+$/ && -d "$dir/$_" && -d "$dir/$_/keep" } readdir(DIR);
closedir DIR;
for $f (@names) {
system('wget', '-O', "/org/org.emacswiki/htdocs/maintenance/$f.html",
"http://www.emacswiki.org/cgi-bin/$f?action=maintain");
}