From 6b39def739b0f5174d6c842bd798df179541db60 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Mon, 1 Aug 2022 07:26:37 +0300 Subject: feat: set output file modification times Sponsored-by: author --- riki.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'riki.md') diff --git a/riki.md b/riki.md index e208baa..7adb3ff 100644 --- a/riki.md +++ b/riki.md @@ -529,3 +529,24 @@ then stdout doesn't contain ".git" then stdout doesn't contain "index.mdwn~" then stdout doesn't contain "#index.mdwn#" ~~~ + +## Output directory tree + +### Output files have source file modification times + +_Requirement: Files in the output directory have the same time stamp +as the corresponding files in the source directory._ + +Note that due to limitations in the Subplot `lib/files` library, our +check for modification times is imprecise. + +~~~scenario +given an installed riki +given file site/index.mdwn from empty +given file site/index.mdwn has modification time 1970-01-01 00:00:00 +given file site/index.jpg from empty +given file site/index.jpg has modification time 1970-01-01 00:00:00 +when I run riki build site output +then file output/index.html has a very old modification time +then file output/index.jpg has a very old modification time +~~~ -- cgit v1.2.1