]> sipb.mit.edu Git - ikiwiki.git/blobdiff - IkiWiki/Setup/Standard.pm
add gensetup for git
[ikiwiki.git] / IkiWiki / Setup / Standard.pm
index 54819ae75d822b85f86d7ecdb0b0c30a28094855..b8ad091448c025d3b3400b0e38b883e84754d6fa 100644 (file)
@@ -80,11 +80,18 @@ sub gendump ($) { #{{{
        push @ret, dumpvalues(\%setup, IkiWiki::getsetup());
        push @ret, "";
 
+       # sort rcs plugin first
+       my @plugins=sort {
+               ($a eq $config{rcs}) <=> ($b eq $config{rcs})
+               ||
+               $a cmp $b
+       } keys %{$IkiWiki::hooks{getsetup}};
+
        foreach my $id (sort keys %{$IkiWiki::hooks{getsetup}}) {
                # use an array rather than a hash, to preserve order
                my @s=$IkiWiki::hooks{getsetup}{$id}{call}->();
                return unless @s;
-               push @ret, "\t# $id plugin";
+               push @ret, "\t# $id".($id ne $config{rcs} ? " plugin" : "");
                push @ret, dumpvalues(\%setup, @s);
                push @ret, "";
        }