markunseen($feed->{sourcepage});
}
}
+
+ return $needsbuild;
}
sub preprocess (@) {
}
}
}
+ return $needsbuild;
}
1
}
}
}
+
+ return $needsbuild;
}
sub preprocess (@) {
}
}
}
+
+ return $needsbuild;
}
sub preprocess (@) {
}
}
}
+ return $needsbuild;
}
sub scrub ($$) {
}
}
}
+ return $needsbuild;
}
sub preprocess (@) {
foreach my $master (keys %translations) {
map add_depends($_, $master), values %{otherlanguages_pages($master)};
}
+
+ return $needsbuild;
}
sub scan (@) {
}
sub needsbuild ($) {
+ my $needsbuild=shift;
+
debug("skeleton plugin needsbuild");
+
+ return $needsbuild;
}
sub preprocess (@) {
$wikistate{theme}{currenttheme}=$config{theme};
}
+ return $needsbuild;
}
1
}
}
}
+ return $needsbuild;
}
sub preprocess (@) {
my ($new, $internal_new)=find_new_files($files);
my ($del, $internal_del)=find_del_files($pages);
my ($changed, $internal_changed)=find_changed($files);
- run_hooks(needsbuild => sub { shift->($changed) });
+ run_hooks(needsbuild => sub {
+ my $ret=shift->($changed);
+ $changed=$ret if ref $ret eq 'ARRAY';
+ });
my $oldlink_targets=calculate_old_links($changed, $del);
foreach my $file (@$changed) {
+ikiwiki (3.20100832) UNRELEASED; urgency=low
+
+ * needsbuild hook interface changed; the hooks should now return
+ the modified array of things that need built. (Backwards compatability
+ code keeps plugins using the old interface working.)
+
+ -- Joey Hess <joeyh@debian.org> Tue, 07 Sep 2010 12:08:05 -0400
+
ikiwiki (3.20100831) unstable; urgency=low
* filecheck: Fall back to using the file command if the freedesktop
This allows a plugin to manipulate the list of files that need to be
built when the wiki is refreshed. The function is passed a reference to an
-array of files that will be rebuilt, and can modify the array, either
-adding or removing files from it.
+array of files that will be rebuilt. It should return an array reference
+that is a modified version of its input. It can add or remove files from it.
### scan