]> sipb.mit.edu Git - ikiwiki.git/blobdiff - IkiWiki/Plugin/listdirectives.pm
listdirectives: Avoid listing _comment directives and generally assume any directive...
[ikiwiki.git] / IkiWiki / Plugin / listdirectives.pm
index d2cebca342756fdbb8d9a31e34b43fe527bd4b4d..bd73f1a04e728638c19994c0d64a4f288a120150 100644 (file)
@@ -45,7 +45,7 @@ sub checkconfig () {
 sub needsbuild (@) {
        my $needsbuild=shift;
 
 sub needsbuild (@) {
        my $needsbuild=shift;
 
-       @fulllist = sort keys %{$IkiWiki::hooks{preprocess}};
+       @fulllist = grep { ! /^_/ } sort keys %{$IkiWiki::hooks{preprocess}};
        @shortlist = grep { ! $IkiWiki::hooks{preprocess}{$_}{shortcut} } @fulllist;
        $pluginstring = join(' ', @shortlist) . " : " . join(' ', @fulllist);
 
        @shortlist = grep { ! $IkiWiki::hooks{preprocess}{$_}{shortcut} } @fulllist;
        $pluginstring = join(' ', @shortlist) . " : " . join(' ', @fulllist);