diff options
author | Joey Hess <joey@kodama.kitenet.net> | 2008-07-26 18:10:01 -0400 |
---|---|---|
committer | Joey Hess <joey@kodama.kitenet.net> | 2008-07-26 18:10:01 -0400 |
commit | 66739016fafd95beb736dc37391fadd28dc47417 (patch) | |
tree | 4346c34542faaa76ef91c399a361d3e5fd9cbc89 /IkiWiki/Setup | |
parent | 9bcb649efe5098bf60a4c385e31f063af2a03afd (diff) |
add gensetup for git
Diffstat (limited to 'IkiWiki/Setup')
-rw-r--r-- | IkiWiki/Setup/Standard.pm | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/IkiWiki/Setup/Standard.pm b/IkiWiki/Setup/Standard.pm index 54819ae75..b8ad09144 100644 --- a/IkiWiki/Setup/Standard.pm +++ b/IkiWiki/Setup/Standard.pm @@ -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, ""; } |