Process files from @autofiles in refresh().

To make automatically added files render they have to be added to the $files,
$pages, $new, and $changed variables.

After that scan() is called on them.
master
David Riebenbauer 2010-01-31 02:23:11 +01:00
parent b18fde2bde
commit f3c59ed3e5
1 changed files with 14 additions and 0 deletions

View File

@ -642,6 +642,20 @@ sub refresh () {
scan($file);
}
while (my $autofile = shift (@autofiles)) {
my $page=pagename($autofile);
if ($pages->{$page}) {
debug(sprintf(gettext("%s has multiple possible source pages"), $page));
}
$pages->{$page}=1;
push @{$files}, $autofile;
push @{$new}, $autofile if find_new_files([$autofile]);
push @{$changed}, $autofile if find_changed([$autofile]);
scan($autofile);
}
calculate_links();
remove_del(@$del, @$internal_del);