haiku: if deterministic build is requested, return a hard-coded haiku

master
Simon McVittie 2015-06-09 11:28:04 +01:00
parent 15939a2528
commit 361076e55d
2 changed files with 9 additions and 1 deletions

View File

@ -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.

2
debian/changelog vendored
View File

@ -34,6 +34,8 @@ ikiwiki (3.20150330) UNRELEASED; urgency=medium
* Sort backlinks deterministically, by falling back to sorting by href
if the link text is identical
* Add a $config{deterministic} option and use it for the docwiki
* haiku: if deterministic build is requested, return a hard-coded haiku
* If deterministic build is requested, return a hard-coded haiku
-- Joey Hess <id@joeyh.name> Tue, 28 Apr 2015 12:24:08 -0400