diff options
author | Joey Hess <joey@kodama.kitenet.net> | 2008-07-26 21:00:11 -0400 |
---|---|---|
committer | Joey Hess <joey@kodama.kitenet.net> | 2008-07-26 21:00:11 -0400 |
commit | c83fd4a32868d46765a88f6903dd807f18c9ae84 (patch) | |
tree | 8caffbf1eee77601014d4e58833e74e5cc55891c /IkiWiki/Rcs/tla.pm | |
parent | 4604fadf0acb92ec3e64092bcd9e76eae93b93b2 (diff) |
wrapper setup reorg
Flattened the wrapper setup, as this lets it be handled better by the
setup generation code.
Diffstat (limited to 'IkiWiki/Rcs/tla.pm')
-rw-r--r-- | IkiWiki/Rcs/tla.pm | 28 |
1 files changed, 26 insertions, 2 deletions
diff --git a/IkiWiki/Rcs/tla.pm b/IkiWiki/Rcs/tla.pm index 549e9f52d..53c198032 100644 --- a/IkiWiki/Rcs/tla.pm +++ b/IkiWiki/Rcs/tla.pm @@ -6,11 +6,36 @@ use warnings; use strict; use IkiWiki; +hook(type => "checkconfig", id => "tla", call => sub { #{{{ + if (! defined $config{diffurl}) { + $config{diffurl}=""; + } + if (exists $config{tla_wrapper}) { + push @{$config{wrappers}}, { + wrapper => $config{tla_wrapper}, + wrappermode => (defined $config{tla_wrappermode} ? $config{tla_wrappermode} : "06755"), + }; + } +}); #}}} + hook(type => "getsetup", id => "tla", call => sub { #{{{ return + tla_wrapper => { + type => "string", + #example => "", # TODO example + description => "tla post-commit executable to generate", + safe => 0, # file + rebuild => 0, + }, + tla_wrappermode => { + type => "string", + example => '06755', + description => "mode for tla_wrapper (can safely be made suid)", + safe => 0, + rebuild => 0, + }, historyurl => { type => "string", - default => "", #example => "", # TODO example description => "url to show file history ([[file]] substituted)", safe => 1, @@ -18,7 +43,6 @@ hook(type => "getsetup", id => "tla", call => sub { #{{{ }, diffurl => { type => "string", - default => "", #example => "", # TODO example description => "url to show a diff ([[file]] and [[rev]] substituted)", safe => 1, |