example-maintenance.pl 356 B

1234567891011
  1. #!/usr/bin/perl
  2. $dir = "/org/org.emacswiki/htdocs";
  3. opendir(DIR, $dir) || die "can't opendir $dir: $!";
  4. @names = grep { /^[a-z]+$/ && -d "$dir/$_" && -d "$dir/$_/keep" } readdir(DIR);
  5. closedir DIR;
  6. for $f (@names) {
  7. system('wget', '-O', "/org/org.emacswiki/htdocs/maintenance/$f.html",
  8. "http://www.emacswiki.org/cgi-bin/$f?action=maintain");
  9. }