aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki
diff options
context:
space:
mode:
authorSimon McVittie <smcv@debian.org>2015-06-09 11:28:04 +0100
committerSimon McVittie <smcv@debian.org>2015-06-09 22:30:43 +0100
commit361076e55d329c0297b2ddf450003ee7ce210925 (patch)
tree73588af543134104d9610880e3582c936b505656 /IkiWiki
parent15939a2528d0615562618f6a22eb34427d829cda (diff)
downloadikiwiki-361076e55d329c0297b2ddf450003ee7ce210925.tar
ikiwiki-361076e55d329c0297b2ddf450003ee7ce210925.tar.gz
haiku: if deterministic build is requested, return a hard-coded haiku
Diffstat (limited to 'IkiWiki')
-rw-r--r--IkiWiki/Plugin/haiku.pm8
1 files changed, 7 insertions, 1 deletions
diff --git a/IkiWiki/Plugin/haiku.pm b/IkiWiki/Plugin/haiku.pm
index bf23dce67..7ce74696b 100644
--- a/IkiWiki/Plugin/haiku.pm
+++ b/IkiWiki/Plugin/haiku.pm
@@ -25,7 +25,13 @@ sub preprocess (@) {
my $haiku;
eval q{use Coy};
- if ($@ || ! Coy->can("Coy::with_haiku")) {
+ if ($config{deterministic}) {
+ $haiku = "Coy changes often.
+ For deterministic builds
+ try this substitute.
+ ",
+ }
+ elsif ($@ || ! Coy->can("Coy::with_haiku")) {
my @canned=(
"The lack of a Coy:
No darting, subtle haiku.